Grade Flowchart
0.5s 256MWrite a program that follows the flowchart below to decide a student's grade result.
The program reads one integer score, the student's score. Output the matching English result using these rules:
- If
scoreis at least \(60\), outputPassed. - If
scoreis less than \(60\) but at least \(50\), outputMake-up Exam. - If
scoreis less than \(50\), outputRetake Course.
Input
The input contains one line with one integer score.
Constraints
- \(0 \le score \le 100\)
Output
Output one line, the grade result. The output must be exactly one of these three strings:
PassedMake-up ExamRetake Course
Sample Input 1
85
Sample Output 1
Passed
Sample Explanation 1
\(85\) is at least \(60\), so the output is Passed.
Sample Input 2
55
Sample Output 2
Make-up Exam
Sample Explanation 2
\(55\) is less than \(60\) but at least \(50\), so the output is Make-up Exam.
Sample Input 3
40
Sample Output 3
Retake Course
Sample Explanation 3
\(40\) is less than \(50\), so the output is Retake Course.
Log in to write and submit code. Creating an account is free.