Ask Question
14 June, 13:34

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

+1
Answers (1)
  1. 14 June, 13:54
    0
    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.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “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 ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers