class Program
{
static void Main()
{
Console.WriteLine("Roll Nos." + " " + " Names" + " " + "score 1" + " " + "score 2" + " " + "score 3" + " " + "Average\n");
Console.ReadLine();
LinkedList<string> Linked = new LinkedList<string>();
Linked.AddLast("maryam");
Linked.AddLast("ali");
Linked.AddLast("mahum");
Linked.AddLast("aliza");
Linked.AddLast("faizan");
Linked.AddLast("mehreen");
Linked.AddLast("arisha");
Linked.AddLast("maira");
Linked.AddLast("hira");
Linked.AddLast("ameen");
Linked.AddLast("fari");
Linked.AddLast("kashif");
Linked.AddLast("farhan");
Linked.AddLast("abid");
Linked.AddLast("mustafa");
Linked.AddLast("urooj");
Linked.AddLast("areeba");
Linked.AddLast("anusha");
Linked.AddLast("farheen");
Linked.AddLast("zareen");
Linked.AddLast("amber");
Linked.AddLast("hammad");
Linked.AddLast("fawad");
Linked.AddLast("huriya");
Linked.AddLast("yasir");
Linked.AddLast("rafia");
Linked.AddLast("maliha");
Linked.AddLast("madiha");
Linked.AddLast("sarwat");
Linked.AddLast("noorisa");
Linked.AddLast("meena");
Linked.AddLast("hadi");
Linked.AddLast("falak");
Linked.AddLast("zubair");
Linked.AddLast("eashal");
Linked.AddLast("easha");
Linked.AddLast("ramsha");
Linked.AddLast("nabeel");
Linked.AddLast("saleh");
Linked.AddLast("salman");
Linked.AddLast("mesam");
Linked.AddLast("raza");
Linked.AddLast("khurram");
Linked.AddLast("saqib");
Linked.AddLast("aylia");
Linked.AddLast("fizza");
Linked.AddLast("zaib");
Linked.AddLast("aisha");
Linked.AddLast("zoya");
Linked.AddLast("marziya");
Linked.AddLast("zainab");
Linked.AddLast("noor");
Linked.AddLast("maha");
Linked.AddLast("rubab");
Linked.AddLast("jaffar");
Linked.AddLast("rohail");
Linked.AddLast("malik");
Linked.AddLast("mehtab");
Linked.AddLast("shehryar");
Linked.AddLast("jazib");
Linked.AddLast("ameer");
Linked.AddLast("tooba");
Linked.AddLast("fatima");
Linked.AddLast("abiha");
Linked.AddLast("tehseen");
Linked.AddLast("tazeen");
Linked.AddLast("medhat");
Linked.AddLast("sana");
Linked.AddLast("iqra");
Linked.AddLast("abid");
Linked.AddLast("waleed");
Linked.AddLast("nabiha");
Linked.AddLast("nabila");
Linked.AddLast("anita");
Linked.AddLast("aleem");
Linked.AddLast("mona");
Linked.AddLast("shahid");
Linked.AddLast("saba");
Linked.AddLast("zoya");
Linked.AddLast("anisa");
Linked.AddLast("rabbiya");
Linked.AddLast("bariha");
Linked.AddLast("anila");
Linked.AddLast("asra");
Linked.AddLast("taaliya");
Linked.AddLast("quratulain");
Linked.AddLast("komal");
Linked.AddLast("kainat");
Linked.AddLast("muniba");
Linked.AddLast("naeem");
Linked.AddLast("dua");
Linked.AddLast("wajahat");
Linked.AddLast("waqar");
Linked.AddLast("tabinda");
Linked.AddLast("asad");
Linked.AddLast("shoaib");
Linked.AddLast("aabia");
Linked.AddLast("misha");
Linked.AddLast("anam");
Linked.AddFirst("sobia");
for (int i = 0; i <= 100; i = i + 1)
{
Console.Write(i);
Console.ReadLine();
Console.WriteLine(" ");
}
foreach (var names in Linked)
{
Console.WriteLine(names);
Console.ReadLine();
Console.WriteLine(" ");
}
int avg, s1, s2, s3, N;
Console.WriteLine("enter scores of 3 exams:");
s1 = Convert.ToInt16(Console.ReadLine());
s2 = Convert.ToInt32(Console.ReadLine());
s3 = Convert.ToInt32(Console.ReadLine());
avg = (s1 + s2 + s3) / 3;
Console.WriteLine(avg);
Console.ReadLine();
}
}
}
i am writing a program to find the average of 3 exam score's of each student having 100 enrollments using linked list and i cant display the names under the Names string and also to get scores either in array or throught user input and calculate the average .please someone kindly help me with this em attaching the code with this