subject

C++ ATM PROGRAM DESIGN Ask the user to enter the desired withdrawal amount in multiple of 10 dollars. The algorithm should determine the least number of bills dispensed. The bills dispensed are 50s, 20s, and 10s. For example, if the withdrawal amount is 110 dollars, your program would say that the machine will dispense 2 fifties, 0 twenties, and 1 ten.  Display the number dispensed for each bill type after the user enters a dollar amount (only if a valid dollar amount is entered).  The program should include a welcome message that gives a brief description of what the program does.  Create named constants in ALL CAPS for each of the dollar amounts of 10, 20 and 50.  Display an error message if the dollar amount is not greater than zero or if the amount is not a multiple of ten.  Hint: You will need to use the modulus (%) operator for some of the calculations.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 10:40
When running anti-virus software , what could be a reason where recipitent is not guaranteed that data being streamed will not get interrupted?
Answers: 1
question
Computers and Technology, 23.06.2019 16:50
15: 28read the summary of "an indian's view of indian affairs."15 betterin "an indian's view of indian affairs," it is asserted that conflicts could be reduced if white americansunderstood native americans..pswhich of the following would make this summary more complete? eleo the fact that chief joseph believes the great spirit sees everythinthe fact that chief joseph was born in oregon and is thirty-eight years oldo the fact that chief joseph states that he speaks from the hearthehehethe fact that chief joseph of the nez percé tribe made this claimebell- ==feetle===-felsefe ==submitmark this and retum.=
Answers: 3
question
Computers and Technology, 24.06.2019 09:50
Self contained sequences of actions to be performed are? a. expressions b. algorithms c. functions d. formulas
Answers: 1
question
Computers and Technology, 24.06.2019 11:20
William travels a lot on business purpose. he needs to regularly communicate with his business partner. he also needs to send out weekly reports to his boss while he is traveling. which web-based application best suits william’s needs? (social media, webmail, wiki) is the best web-based application for william. he can access this application via the internet using a (digital cable, fax machine, web browser).
Answers: 1
You know the right answer?
C++ ATM PROGRAM DESIGN Ask the user to enter the desired withdrawal amount in multiple of 10 dolla...
Questions
question
English, 21.05.2021 16:10
question
Mathematics, 21.05.2021 16:10
question
Mathematics, 21.05.2021 16:10
Questions on the website: 13722361