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 the Film "On the Waterfront" What was the real-life basis for the following characters? Terry Malloy and Father Barry Thanks heaps x
the establishment clause would prevent
from the start screen you can:access recently saved excel worksheets/ access recently opened excel workbooks / create a document from template/ create new blank
(20 points) answer need ASAP:”)
Which type of cover letter would the above excerpt come from? a. Prospecting cover letter b. Networking cover letter c. Application cover letter d. Follow up co
Boyle’s law says that the pressure of a perfect gas varies inversely to its volume at a _______ temperature.
Which gland plays a large role in the distribution of calcium and phosphate throughout the body
Which expression is equivalent to r^m ÷ r^n r^m − n r^m + n r^m ⋅ n r^m ÷ n
I need help plz !!!!!!!
2x^2+10=4 solve using quadratic formula