subject

Suppose that a cashier owes a customer some change and that the cashier only has quarters, dimes, nickels, and pennies. write a function that computes the minimum number of coins that the cashier can return. in particular, write a function change_to_coins(amount) that returns the minimum possible number of coints that add up to the given amount of dollars. you may assume that the input to function change_to_coins(amount)is a float value referred to by amount representing the number of dollars. before doing anything else, you should convert this number entirely to cents (that should be of type int). once you have the total number of cents here are some hints on how to find the minimum number of coins. (it's a python program)

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:30
What does a cascading style sheet resolve a conflict over rules for an element? a. the rule affecting the most content wins b. the rule affecting the most content loses c. the rule with the most specific selector loses d. the rule with the most specific selector wins
Answers: 2
question
Computers and Technology, 23.06.2019 05:00
Which best explains why a digital leader would join a society specializing in technology
Answers: 1
question
Computers and Technology, 23.06.2019 12:00
From excel to powerpoint, you can copy and paste a. cell ranges and charts, one at a time. b. cell ranges and charts, simultaneously. c. charts only. d. cell ranges only.
Answers: 3
question
Computers and Technology, 23.06.2019 12:50
Which syntax error in programming is unlikely to be highlighted by a compiler or an interpreter? a variable name misspelling a missing space a comma in place of a period a missing closing quotation mark
Answers: 1
You know the right answer?
Suppose that a cashier owes a customer some change and that the cashier only has quarters, dimes, ni...
Questions
question
English, 11.07.2019 12:00
question
World Languages, 11.07.2019 12:00
question
Mathematics, 11.07.2019 12:00
question
Mathematics, 11.07.2019 12:00
Questions on the website: 13722361