Geraldi449 Geraldi449
  • 11-02-2020
  • Computers and Technology
contestada

Write an expression that will print "Dollar or more" if the value of num_cents is at least a dollar (100 cents is a dollar). Sample output with input: 109 Dollar or more

Respuesta :

ammary456
ammary456 ammary456
  • 17-02-2020

Answer:

num_cents = 109

if num_cents >= 100:

   print('Dollar or more')

else:

   print('not a dollar')

Explanation:

  • Assign the value of 109  to num_cents.
  • Check if num_cents value is greater than 100, then print dollar or more .
  • Else the value entered is less than 100 cents so it is not a dollar .
Answer Link

Otras preguntas

In 2019, the New England Patriots played 16 football games. The ratio of the number of games they won to the the number of games they lost was 3/1. How many gam
HURRY FAST PLEASEE I NEED DIS NOW Do you think that the development of resort towns like Cancun has benefited or hurt Mexico? Provide examples to support your a
Manny ran a total of 77 miles over the course of 7 track practices. How many track practices would it take for Manny to run 99 miles? Assume the relationship is
Which of the following could represent the question: How many 4/9s are in 6/5 as a multiplication equation? x*4/9=6/5 x*6/5=4/9 6/5*4/9=x 4/9*6/5=x
what is the answer 25−12÷[(8−5)×1]
12 sheets of paper out of 28
Help me out with these!!!
(58x+46y)-(25x-22y) can you please help
Item 3 How does the author of the Newsela article "PRO/CON: Binge-Watching" introduce the reader to the idea that binge-watching can be healthy? by explaining
What are three ways to create an effective ethos in argumentation?