Using c++, write a program for an automatic teller machine that dispenses money. The user should enter the amount desired (a multiple of 10 dollars) and the machine dispenses this amount using the least number of bills. The bills dispensed are 100s, 50s, 20s, and 10s. Write a function that determine how many of each kind of bill to dispense. The function should implement the function e as below: void instruct(void); void dispenser(int, int* , int* , int* , int* ) SAMPLE RUN: ABC BANK Automatic Teller Machine ATM Enter withdraw Amount: 1 Invalid Input! Please enter a multiple of 10 dollars Enter withdraw Amount: 5 Invalid Input! Please enter a multiple of 10 dollars Enter withdraw Amount: 1050 Number of 100 bills: 10 Number of 50 bills: 1 Number of 20 bills: 0 Number of 10 bills: 0

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter6: User-defined Functions
Section: Chapter Questions
Problem 12PE: Write a program that takes as input five numbers and outputs the mean (average) and standard...
icon
Related questions
Question
100%
Using c++, write a program for an automatic teller machine that dispenses money. The user should
enter the amount desired (a multiple of 10 dollars) and the machine dispenses this amount using the
least number of bills. The bills dispensed are 100s, 50s, 20s, and 10s. Write a function that determine
how many of each kind of bill to dispense.
The function should implement the function e as below:
void instruct(void);
void dispenser(int, int* , int* , int* , int* )
SAMPLE RUN:
ABC BANK Automatic Teller Machine ATM
Enter withdraw Amount: 1
Invalid Input!
Please enter a multiple of 10 dollars
Enter withdraw Amount: 5
Invalid Input!
Please enter a multiple of 10 dollars
Enter withdraw Amount: 1050
Number of 100 bills: 10
Number of 50 bills: 1
Number of 20 bills: O
Number of 10 bills: O
Transcribed Image Text:Using c++, write a program for an automatic teller machine that dispenses money. The user should enter the amount desired (a multiple of 10 dollars) and the machine dispenses this amount using the least number of bills. The bills dispensed are 100s, 50s, 20s, and 10s. Write a function that determine how many of each kind of bill to dispense. The function should implement the function e as below: void instruct(void); void dispenser(int, int* , int* , int* , int* ) SAMPLE RUN: ABC BANK Automatic Teller Machine ATM Enter withdraw Amount: 1 Invalid Input! Please enter a multiple of 10 dollars Enter withdraw Amount: 5 Invalid Input! Please enter a multiple of 10 dollars Enter withdraw Amount: 1050 Number of 100 bills: 10 Number of 50 bills: 1 Number of 20 bills: O Number of 10 bills: O
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Knowledge Booster
Function Arguments
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning