devontemiles4437 devontemiles4437
  • 27-03-2021
  • Engineering
contestada

Test if a number grade is an A (greater than or equal to 90). If so, print "Great!". Hint: Grades may be decimals. Sample Run Enter a Number: 98.5 Sample Output Great!

Respuesta :

MrRoyal
MrRoyal MrRoyal
  • 28-03-2021

Answer:

In Python:

grade = float(input("Enter a Number: "))

if grade >= 90:

   print("Great!")

Explanation:

This prompts the user for grade

grade = float(input("Enter a Number: "))

This checks for input greater than or equal to 90

if grade >= 90:

If yes, this prints "Great"

   print("Great!")

Answer Link

Otras preguntas

The plasma membrane has a double layer of phospholipids with _____ dispersed throughout.
-2 5/22 as a decimal
which car has the greatest acceleration during the time interval 10 seconds to 15 seconds
Which is part of the biosphere? A. humans B. stratosphere C. volcanoes D. oceans
Need help please answer! What are the first six terms of the sequence, n2 (n squared)??
The speed of light is 186,282 miles per second. How many miles does light travel in 1hour?
Two fair six sided dice are thrown. Find the probability that both dice land on 6
How do you write 12/5 as a whole number
How is it possible for a single sedimentary rock to contain rock particles animal shells and minerals that crystallized from water?
explain how a hawk or eagle could use convection currents to soar upward without flapping its wings