Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Impara Challenge: Grade Categorizer | Conditional Statements
Introduction to JavaScript

Scorri per mostrare il menu

book
Challenge: Grade Categorizer

Compito

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 and 89, print: "Grade: B".
  • If the grade is between 70 and 79, print: "Grade: C".
  • If the grade is between 60 and 69, print: "Grade: D".
  • If the grade is below 60, print: "Grade: F".

Soluzione

Switch to desktopCambia al desktop per esercitarti nel mondo realeContinua da dove ti trovi utilizzando una delle opzioni seguenti
Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 3. Capitolo 11
Siamo spiacenti che qualcosa sia andato storto. Cosa è successo?

Chieda ad AI

expand
ChatGPT

Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione

book
Challenge: Grade Categorizer

Compito

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 and 89, print: "Grade: B".
  • If the grade is between 70 and 79, print: "Grade: C".
  • If the grade is between 60 and 69, print: "Grade: D".
  • If the grade is below 60, print: "Grade: F".

Soluzione

Switch to desktopCambia al desktop per esercitarti nel mondo realeContinua da dove ti trovi utilizzando una delle opzioni seguenti
Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 3. Capitolo 11
Switch to desktopCambia al desktop per esercitarti nel mondo realeContinua da dove ti trovi utilizzando una delle opzioni seguenti
Siamo spiacenti che qualcosa sia andato storto. Cosa è successo?
some-alt