C++
iostream
plz dont copy paste other answers post!
Task 1: Money dispenser Write a program for an arithmetic teller machine (ATM) that dispenses money. When the user enters the desired amount (a multiple of 10 dollars) the machine should dispense this amount using the least number of bills. The bills dispensed are the 50s, 20s, and 10s. Write a function that determines how many of each kind of bill to dispense. Write a function called dispense that has one input parameter for accepting the desired amount by value (int), and three output parameters (by reference) that output the number of bills for each type of bill: Sample output: Enter the amount of money: 120 Number of $50 bill: 2 Number of $20 bill: 1 Number of $10 bill: 0
C++ iostream plz dont copy paste other answers post!
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am