subject

(C++) John Doe is a teller at the Wei’s Bank. However, he is rather poor in Math, and he often gave the wrong change to the customers.

Being a good friend, you are trying to help him by writing a program that would determine the minimum of $100 bills, $50 bills, $20 bills, $10 bills, $5 bills, and $1 bills that make the correct change. You can assume that this will not be cents in the amount given.

The output of your program must look exactly like the shown output below.

N. B. Remember the % ( modulus) operator.

Example 1:

Enter Amount: $6

$100 Bill(s): 0

$50 Bill(s): 0

$20 Bill(s): 0

$10 Bill(s): 0

$5 Bill(s): 1

$1 Bill(s): 1

Example 2:

Enter Amount: $1266

$100 Bill(s): 12

$50 Bill(s): 1

$20 Bill(s): 0

$10 Bill(s): 1

$5 Bill(s): 1

$1 Bill(s): 1

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 22:30
What are compression artifacts? 1) visible defects in the picture caused by the nature of the compression algorithm. 2) numbers that tell a web server how much to compress a picture for faster transmission. 3) invisible defects in the picture preserved by lossless compression. 4) numbers that tell a photo editing program how much to compress a picture for faster transmission.
Answers: 3
question
Computers and Technology, 22.06.2019 07:30
In the film "epic 2015," epic is the name for:
Answers: 3
question
Computers and Technology, 22.06.2019 21:30
This graph compares the total cost of attending educational institutions in texas. the graph demonstrates that the cost at private and public technical schools greatly varies.
Answers: 2
question
Computers and Technology, 23.06.2019 16:00
Which analyst position analyzes information using mathematical models to business managers make decisions?
Answers: 1
You know the right answer?
(C++) John Doe is a teller at the Wei’s Bank. However, he is rather poor in Math, and he often gav...
Questions
question
Physics, 03.02.2021 18:40
question
Mathematics, 03.02.2021 18:40
question
Arts, 03.02.2021 18:40
question
Mathematics, 03.02.2021 18:40
question
Mathematics, 03.02.2021 18:40
Questions on the website: 13722363