Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprenda Challenge: Grade Categorizer | Section
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
JavaScript Essentials for Beginners - 1768407374405

bookChallenge: Grade Categorizer

Tarefa

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".

Solução

Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 1. Capítulo 40
single

single

Pergunte à IA

expand

Pergunte à IA

ChatGPT

Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo

close

bookChallenge: Grade Categorizer

Deslize para mostrar o menu

Tarefa

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".

Solução

Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 1. Capítulo 40
single

single

some-alt