subject

2. Write a program that models a cashier at a store. The program will take two numbers as input. Firstly, the cost of an item ($20.00 or less). Secondly, the amount of money given to the cashier ($20.00 or less). The program should output the change given in 10 dollar bills, 5 dollar bills, 1 dollar bills, quarters, dimes, nickels, or pennies. You should output the highest denominations possible. For example, if the item costs $5.20 and the cashier is given $10 then the change should be 4 dollar bills 3 quarters 1 nickel

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:10
The total cost of textbooks for the term was collected from 36 students. create a histogram for this data. $140 $160 $160 $165 $180 $220 $235 $240 $250 $260 $280 $285 $285 $285 $290 $300 $300 $305 $310 $310 $315 $315 $320 $320 $330 $340 $345 $350 $355 $360 $360 $380 $395 $420 $460 $460
Answers: 2
question
Computers and Technology, 22.06.2019 19:20
Write a program that reads a file consisting of students’ test scores in the range 0–200. it should then determine the number of students having scores in each of the following ranges: 0–24, 25–49, 50–74, 75–99, 100–124, 125–149, 150–174, and 175–200. output the score ranges and the number of students. (run your program with the following input data: 76, 89, 150, 135, 200, 76, 12, 100, 150, 28, 178, 189, 167, 200, 175, 150, 87, 99, 129, 149, 176, 200, 87, 35, 157, 189.)
Answers: 3
question
Computers and Technology, 23.06.2019 21:00
Alcohol’s affects on the cornea and lens of the eye make it more difficult
Answers: 1
question
Computers and Technology, 23.06.2019 23:30
What are "open-loop" and "closed-loop" systems
Answers: 1
You know the right answer?
2. Write a program that models a cashier at a store. The program will take two numbers as input. Fir...
Questions
question
Mathematics, 21.09.2019 05:20
Questions on the website: 13722363