Section 3. Chapter 10
single
Challenge: Grade Categorizer
Swipe to show menu
Task
Swipe to start coding
Write a program that takes a student's score and outputs an alphabetical grade.
Use if, else if, and else statements to categorize the grade based on the following ranges:
- If the grade is 90 or higher →
"Grade: A". - If the grade is between 80 and 89 →
"Grade: B". - If the grade is between 70 and 79 →
"Grade: C". - If the grade is between 60 and 69 →
"Grade: D". - If the grade is below 60 →
"Grade: F".
Solution
Everything was clear?
Thanks for your feedback!
Section 3. Chapter 10
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat