Challenge: Grade Categorizer
Oppgave
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
90or higher, print:"Grade: A". - If the grade is between
80and89, print:"Grade: B". - If the grade is between
70and79, print:"Grade: C". - If the grade is between
60and69, print:"Grade: D". - If the grade is below
60, print:"Grade: F".
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 1. Kapittel 40
single
Spør AI
Spør AI
Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår
Fantastisk!
Completion rate forbedret til 1.33
Challenge: Grade Categorizer
Sveip for å vise menyen
Oppgave
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
90or higher, print:"Grade: A". - If the grade is between
80and89, print:"Grade: B". - If the grade is between
70and79, print:"Grade: C". - If the grade is between
60and69, print:"Grade: D". - If the grade is below
60, print:"Grade: F".
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 1. Kapittel 40
single