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

10 is %20 of what number
Using a different porpotions of: Save Percentage= Saves/shots on goal. Another goalie has a save percentage of 0.907 with 204 saves in his first 6 games. Your f
2. A skydiver jumps from a plane from an altitude of 6000 ft. An observer on the ground measures the skydiver’s altitude at time t = 0 to be 4500 ft. The linear
Preparamos tado la comida en____
1 plus 1 the answer is 2
f(x)=4x-1 and g(x)=x2-5 FInd (f-g)(x)
15 POINTS! Which political party advocated states’ rights over federal authority? -Republican Party -Democratic-Republican Party -Democratic Party -Federalist P
Sara has to pay $10.75 a month for gym membership but will be billed yearly.how much will she pay in 5 1/2 years.
12 meters into centimeters
20% of 55 is what number