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

Por que a origem do ozonio foi fundamental para a diversificacao dos seres vivos na terra
Anne writes about the different people living in the annex what does she think about Mrs. Van Dann?
find the value of y when x equals 26 x+4y=54
Can someone help me please
In addition to heating, cooling, cooking, providing transportation, and fueling engines, what is another major use for our natural resources?
Which of the following statements about suffixes is false? A suffix can change the meaning of the root word. A suffix is one or more syllables placed at the e
Match the words with their definitions. 1. limits the Federal government to powers the Constitution specifically delegated to it Alien and Sedition Acts 2. g
Which statement is always true?
line p contains point (-3, 0) and is perpendicular to line q. The equation for line q is y=2x + 4 find the slope of line p. Then write an equation for line p in
plzzzzzzz helppppppp​