004-002-006

Else If: Grade Classification

Easy

Problem Description

Else If: Grade Classification

Learning Objective: Perform multi-level conditional branching with else if

In this problem, you will create a program that reads a test score, uses else if statements to classify it into one of five grades (A-E), and displays the result to standard output.

Evaluate test score in 5 levels. Display A-E grade based on score.

Input

Line 1: Score (integer)

Output

Score: [score] pts
Grade: [A/B/C/D/E]
```java
Criteria: 80+ A, 60+ B, 40+ C, 20+ D, <20 E.

Ready to Try Running Code?

Log in to access the code editor and execute your solutions for this problem.

Don't have an account?

Sign Up