Challenge: Grade Categorizer
Task
Swipe to start coding
Write a program which takes a student's score and outputs an alphabetical grade for it.
Use if
, else if
, and else
clauses to categorize the grade based on the given ranges:
- If the grade is
90
or higher, print:"Grade: A"
. - If the grade is between
80
and89
, print:"Grade: B"
. - If the grade is between
70
and79
, print:"Grade: C"
. - If the grade is between
60
and69
, print:"Grade: D"
. - If the grade is below
60
, print:"Grade: F"
.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 3. ChapterΒ 11
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Awesome!
Completion rate improved to 1.33
Challenge: Grade Categorizer
Swipe to show menu
Task
Swipe to start coding
Write a program which takes a student's score and outputs an alphabetical grade for it.
Use if
, else if
, and else
clauses to categorize the grade based on the given ranges:
- If the grade is
90
or higher, print:"Grade: A"
. - If the grade is between
80
and89
, print:"Grade: B"
. - If the grade is between
70
and79
, print:"Grade: C"
. - If the grade is between
60
and69
, print:"Grade: D"
. - If the grade is below
60
, print:"Grade: F"
.
Solution
Everything was clear?
Thanks for your feedback!
Awesome!
Completion rate improved to 1.33SectionΒ 3. ChapterΒ 11
single