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 which order were these documents written? 1. U.S. Constitution 2. Articles of Confederation 3. Magna Carta 4. U.S. Bill of Rights 5. Mayflower Compact 6. Dec
what is the solution set for (x+1)^2=49
What hemisphere I West Virginia in?
So im trying make 2/5 it to a decimal and a persent and My question is how do you make it to a persent and a decimal
If you know the perimeter of the square, you can find the area of the square in two steps. Describe the two steps.
how did cultural values divide traditionalists and modernists
you earn $3 an hour as a waitress. After working 3 hours, you earn $12, $5, and $7 in tips. How much money did you earn in total? Explain how you found your ans
the equation to calculate momentum is ?
Kendrick made a scale drawing of an apartment. In real life, the broom closet is 5 feet long. It is 10 inches long in the drawing. What scale factor does the dr
• 60 candy bars and 110 drinks will sell for $265 • 120 candy bars and 90 drinks will sell for $270 How much does each candy bar sell for?