public static void Main()
string[] studentNames = new string[] { "Sophia", "Andrew", "Emma", "Logan", "Becky", "Chris", "Eric", "Gregor" };
int[] studentScores = new int[10];
int[] sophiaScores = new int[] { 90, 86, 87, 98, 100, 94, 90 };
int[] andrewScores = new int[] { 92, 89, 81, 96, 90, 89 };
int[] emmaScores = new int[] { 90, 85, 87, 98, 68, 89, 89, 89 };
int[] loganScores = new int[] { 90, 95, 87, 88, 96, 96 };
int[] beckyScores = new int[] { 92, 91, 90, 91, 92, 92, 92 };
int[] chrisScores = new int[] { 84, 86, 88, 90, 92, 94, 96, 98 };
int[] ericScores = new int[] { 80, 90, 100, 80, 90, 100, 80, 90 };
int[] gregorScores = new int[] { 91, 91, 91, 91, 91, 91, 91 };
string currentStudentLatterGrade ="";
Console.WriteLine("Student\t\tGrade\n");
foreach(string name in studentNames)
int sumAssignmentScores = 0;
decimal currentStudentGrade = 0;
string currentStudent = name;
if(currentStudent == "Sophia")
studentScores = sophiaScores;
else if(currentStudent == "Andrew")
studentScores = andrewScores;
else if(currentStudent == "Emma ")
studentScores = emmaScores;
else if(currentStudent == "Logan")
studentScores = loganScores;
else if(currentStudent == "Becky")
studentScores = beckyScores;
else if(currentStudent == "Chris")
studentScores = chrisScores;
else if(currentStudent == "Eric")
studentScores = ericScores;
else if(currentStudent == "Gregor")
studentScores = gregorScores;
int gradedAssignments = 0;
foreach(int score in studentScores)
if(gradedAssignments <= examAssignments)
sumAssignmentScores += score;
sumAssignmentScores += score/10;
currentStudentGrade = (decimal)(sumAssignmentScores) / examAssignments;
if(currentStudentGrade >=97)
currentStudentLatterGrade = "A+";
else if(currentStudentGrade >=93)
currentStudentLatterGrade = "A";
else if(currentStudentGrade >=90)
currentStudentLatterGrade = "A-";
else if(currentStudentGrade >=87)
currentStudentLatterGrade = "B+";
else if(currentStudentGrade >=83)
currentStudentLatterGrade = "B";
else if(currentStudentGrade >=80)
currentStudentLatterGrade = "B-";
else if(currentStudentGrade >=77)
currentStudentLatterGrade = "C+";
else if(currentStudentGrade >=73)
currentStudentLatterGrade = "C";
else if(currentStudentGrade >=70)
currentStudentLatterGrade = "C-";
else if(currentStudentGrade >=67)
currentStudentLatterGrade = "D+";
else if(currentStudentGrade >=63)
currentStudentLatterGrade = "D";
else if(currentStudentGrade >=60)
currentStudentLatterGrade = "D-";
currentStudentLatterGrade = "F";
Console.WriteLine($"{currentStudent}\t\t{currentStudentGrade}\t{currentStudentLatterGrade}");
Console.WriteLine("Press the Enter key to continue");