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, 22.06.2019 08:00
What best describes a career pathway in a lodging career? a worker starts out as an amusement attendant, then becomes a recreation worker, and then becomes a gaming worker within five years. a worker starts out as a bell hop, then becomes a night clerk, and then becomes a hotel manager within five years. a worker starting out as a tour guide, then becomes a travel clerk, and then becomes a travel agent within five years. a worker starts out as a server, then becomes a food preparer, and then becomes a head chef within five years.
Answers: 1
question
Computers and Technology, 22.06.2019 18:00
Martha is a healer, a healthcare provider, and an experienced nurse. she wants to share her daily experiences, as well as her 12 years of work knowledge, with people who may be interested in health and healing. which mode of internet communication can martha use?
Answers: 3
question
Computers and Technology, 23.06.2019 09:20
How to print: number is equal to: 1 and it is odd number number is equal to: 2 and it is even number number is equal to: 3 and it is odd number number is equal to: 4 and it is even number in the console using java using 1 if statement, 1 while loop, 1 else loop also using % to check odds and evens
Answers: 3
question
Computers and Technology, 24.06.2019 06:30
Adrawing that places all lines parallel to the z axis at an angle from the horizon is 99 ! a. an oblique drawing b. a perspective drawing c. an auxiliary view d. a one-point perspective drawing
Answers: 2
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
Mathematics, 27.07.2019 00:00
Questions on the website: 13722367