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

how do you pay taxes ​
Who got assasinated as a president.
Write 36 as a product of its prime factors. Write them In order smallest to largest.
What are interesting facts about black cats
Perform the following calculation and report the answer with the correct number of significant figures. 4.40 X 8.0 =
Quisiera saber la respuesta de este ejercicio
The following information is for the Jeffries​ Corporation: Product​ A: Revenue ​$18.00 Variable Cost ​$14.00 Product​ B: Revenue ​$21.00 Variable Cost ​$13.00
Story called: Excerpt from The Strange Case of Dr. Jekyll and Mr. Hyde: “Story of the Door” Question: Which quote supports the theme of neglect?
How has Liberty been best guarded in Western governments
a ____________ is sometimes a rectanglea. parallelogram b. rhombusc. squared. trapezoid ​