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 18:30
List the five on-board vehicle subsystems
Answers: 1
question
Computers and Technology, 22.06.2019 23:30
Which of the following is not a symptom of chronic fatigue syndrome
Answers: 2
question
Computers and Technology, 23.06.2019 00:30
Which one of the following is considered a peripheral? a software b mouse c usb connector d motherboard
Answers: 2
question
Computers and Technology, 23.06.2019 03:00
Jason, samantha, ravi, sheila, and ankit are preparing for an upcoming marathon. each day of the week, they run a certain number of miles and write them into a notebook. at the end of the week, they would like to know the number of miles run each day, the total miles for the week, and average miles run each day. write a program to them analyze their data. your program must contain parallel arrays: an array to store the names of the runners and a two-dimensional array of five rows and seven columns to store the number of miles run by each runner each day. furthermore, your program must contain at least the following functions: a function to read and store the runners’ names and the numbers of miles run each day; a function to find the total miles run by each runner and the average number of miles run each day; and a function to output the results. (you may assume that the input data is stored in a file and each line of data is in the following form: runnername milesday1 milesday2 milesday3 milesday4 milesday5 milesday6 milesday7.)
Answers: 3
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, 25.09.2021 17:20
question
English, 25.09.2021 17:20
question
History, 25.09.2021 17:20
Questions on the website: 13722363