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