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 02:30
The cm is responsible for overseeing the actions of the crisis management team and coordinating all crisis management efforts in cooperation with disaster recovery and/or business continuity planning, on an as-needed basis
Answers: 1
question
Computers and Technology, 22.06.2019 11:00
Technician a says that the radiator usually cools better if the front air dam is removed. technician b says that when a condenser has a leak it can be repaired easily with epoxy. who is correct?
Answers: 1
question
Computers and Technology, 22.06.2019 13:30
Asoftware company hired ray, a college graduate to work in their development team. ray is assigned to work in the coding phase of a project. what happens during the coding phase of a software development project? a. the customer receives a working model of the software. b. developers convert the program design into code. c. developers gather requirements directly from the stakeholders. d. testing teams check the product for quality.
Answers: 1
question
Computers and Technology, 22.06.2019 17:00
Your computer running windows 10 is doing some very strange things with the operating system. you are fairly certain it is not a hardware issue. you need to try to get further insight into what is going on within the operating system. which tool would be best suited for this?
Answers: 2
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
Mathematics, 03.09.2020 02:01
question
Biology, 03.09.2020 02:01
question
Mathematics, 03.09.2020 02:01
question
Mathematics, 03.09.2020 02:01
question
Mathematics, 03.09.2020 02:01