public static void Main()
string studentName = "Tommy Thompson";
int attendancePercentage = 95;
int midtermExamScore = 89;
string midtermExamLetterGrade = "";
string finalExamLetterGrade = "";
string reportCardResult = "";
if (midtermExamScore >= 90)
midtermExamLetterGrade = "A";
else if (midtermExamScore >= 80 && midtermExamScore <= 89)
midtermExamLetterGrade = "B";
else if (midtermExamScore >= 70 && midtermExamScore <= 79)
midtermExamLetterGrade = "C";
midtermExamLetterGrade = "D";
if (finalExamScore >= 90)
finalExamLetterGrade = "A";
else if (finalExamScore >= 80 && finalExamScore <= 89)
finalExamLetterGrade = "B";
else if (finalExamScore >= 70 && finalExamScore <= 79)
finalExamLetterGrade = "C";
finalExamLetterGrade = "D";
totalScore = (midtermExamScore + finalExamScore / 2);
if (passFail && attendancePercentage >= 95)
reportCardResult = "PASS";
if (!passFail || attendancePercentage < 60)
reportCardResult = "FAIL";
Console.WriteLine("STUDENT REPORT CARD");
Console.WriteLine("--------------------------");
Console.WriteLine("Student Name: " + studentName);
Console.WriteLine("Student attended: " + attendancePercentage + "% of all classes.");
Console.WriteLine("Midterm exam grade: " + midtermExamLetterGrade);
Console.WriteLine("Final exam grade: " + finalExamLetterGrade);
Console.WriteLine("Overall Evaluation: " + reportCardResult);