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

what are some advantages of an asexual and a sexual reproduction
Find the volume of the figure below.
Can someone help me please?
The two different teaching methods ??
I need help with this question
32. Mercury has an atomic mass of 200.59 amu. Calculate the a. Mass of 3.0 x 1023 atoms. b. Number of atoms in one nanogram of Mercury? i needed help on this qu
if the area of figure 1 is 6 and figure 2 is 24. figure 3 is 54 then what area for figure 4 and 5
Which of the following is a radical equation? ( Picture)
When an object moves in a circular path, a force keeps it moving that way. this force is called ___________ force?
need help with this question