|   Princeton University | Computer Science 240 | Fall 2025 | 
Consider a student that has the following grades in COS 240:
| Component | Grade | Equivalent Percentage Grade | 
| PS1 | 25/40 | 62.5% | 
| PS2 | 36/40 | 90% | 
| PS3 | 39/40 | 97.5% | 
| PS4 | 30/40 | 75% | 
| PS5 | 34/40 | 85% | 
| Midterm Exam | 80/100 | 80% | 
| Final Exam | 75/100 | 75% | 
| Participation | 5/5 | 100% | 
 The student's Participation grade is 5/5 because the student attended all 10 precepts this semester. The student's final grade for the course is calculated as
 max{ ( 0.4 * Assignment_Grade + Attendance_Grade + 0.55 * Exams_Grade )   ,  ( 0.4 * Assignment_Grade + 0.6 * Exams_Grade )  } 
where
 Assignment_Grade = ( 0.25 * 62.5 + 75 + 80 + 90 + 97.5 ) / 4.25, 
 Attendance_Grade = 5,
 Exams_Grade = max{ ( 0.2 * 80 + 0.8 * 75 ) , ( 0.4 * 80 + 0.6 * 75 ) }.
 Thus, the student's final grade in the course is 81.0558823529/100