double Total = (midtermGrade + projectGrade + finalExamGrade) / 3; int finalGrade = Convert.ToInt32(Total);
midterm, project, final are all double. fina