Computers and Technology

(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

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 17:00, carriecarl3530
Ineed a good science fair name i’m doing a homemade water filter and i have no idea what the title should be plz
Answers: 1
image
Computers and Technology, 22.06.2019 10:40, Morghurley2000
"it security policy enforcement and monitoring" respond to the following: describe how monitoring worker activities can increase the security within organizations. describe the rationale that managers should use to determine the degree of monitoring that the organization should conduct. explain the extent to which you believe an organization has the right to monitor user actions and traffic. determine the actions organizations can take to mitigate the potential issues associated with monitoring user actions and traffic.
Answers: 3
image
Computers and Technology, 22.06.2019 18:30, lailahussain99
Which of the following is an example of intellectual properly! oa. new version of a novelb. journal of ideasc. pages of a bookood. lines of a poem
Answers: 2
image
Computers and Technology, 23.06.2019 08:00, ionmjnm3041
The managing director of a company sends a christmas greeting to all his employees through the company email. which type of network does he use? he uses an .
Answers: 3
Do you know the correct answer?
(C++) John Doe is a teller at the Wei’s Bank. However, he is rather poor in Math, and he often gav...

Questions in other subjects:

Konu
Social Studies, 04.07.2019 16:30