PROBLEM: Write a program that prompts the user to input the amount of money that an ATM machine will dispense and then show the breakdown of how many 1000, 500, and 100 peso bill/s are dispensed. The program must display the amount then prompt the user if the transaction will continue or not by choosing between Y (for Yes) and N (for No). If an invalid character is entered, it must display that the user entered an invalid character. The program must also display that the maximum allowable amount is 10,000 and the minimum allowable amount is 100. If the entered amount is greater than 10,000 or less than 100, an error notification must be displayed. Moreover, the entered amount must be exactly divisible by 100. SPECIFICATIONS: - You may only use the codes that we studied under our lectures - All lines of codes should have a comment. - Save your cpp file as Surname - PE (Example: Pangaliman - PE.cpp) TEST CASES: If a user inputs an amount less than or equal to 10,000: REMINDER: Maximum amount must only be 10,000 and the minimum amount must not be less than 100 Enter Amount to dispense: 4900 The Amount of money you entered is 4900. Do you want to continue your transaction? Enter Y for "Yes' and N for 'no': Y Breakdown of dispensed peso bill: The number of dispensed 1000-peso bills is 4 The number of dispensed 500-peso bills is 1 The number of dispensed 100-peso bills is 400 If a user inputs an amount less than or equal to 10,000: REMINDER: Maximum amount must only be 10,000 and the minimum amount must not be less than 100 Enter Amount to dispense: 7400 The Amount of money you entered is 7400. Do you want to continue your transaction? Enter Y for 'Yes' and N for 'no': Y Breakdown of dispensed peso bill: The number of dispensed 1000-peso bills is 7 The number of dispensed 500-peso bills is 0 The number of dispensed 100-peso bills is 400 Attach File Browse Local Files Browse Content Collection

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter4: Making Decisions
Section: Chapter Questions
Problem 5E: a. Write a program named CheckMonth that prompts a user to enter a birth month. If the value entered...
icon
Related questions
Question
PROBLEM:
Write a program that prompts the user to input the amount of money that an ATM machine will dispense and then show the breakdown of how many 1000, 500, and 100 peso bill/s
are dispensed. The program must display the amount then prompt the user if the transaction will continue or not by choosing between Y (for Yes) and N (for No). If an invalid
character is entered, it must display that the user entered an invalid character. The program must also display that the maximum allowable amount is 10,000 and the minimum
allowable amount is 100. If the entered amount is greater than 10,000 or less than 100, an error notification must be displayed. Moreover, the entered amount must be exactly
divisible by 100.
SPECIFICATIONS:
- You may only use the codes that we studied under our lectures
All lines of codes should have a comment.
- Save your cpp file as Surname - PE (Example: Pangaliman - PE.cpp)
TEST CASES:
If a user inputs an amount less than or equal to 10,000:
REMINDER: Maximum amount must only be 10,000 and the minimum amount must not be less than 100
Enter Amount to dispense: 4900
The Amount of money you entered is 4900.
Do you want to continue your transaction?
Enter Y for "Yes' and N for 'no': Y
Breakdown of dispensed peso bill:
The number of dispensed 1000-peso bills is 4
The number of dispensed 500-peso bills is 1
The number of dispensed 100-peso bills is 400
If a user inputs an amount less than or equal to 10.000:
REMINDER: Maximum amount must only be 10,000 and the minimum amount must not be less than 100
Enter Amount to dispense: 7400
The Amount of money you entered is 7400.
Do you want to continue your transaction?
Enter Y for 'Yes' and N for 'no': Y
Breakdown of dispensed peso bill:
The number of dispensed 1000-peso bills is 7
The number of dispensed 500-peso bills is 0
The number of dispensed 100-peso bills is 400
Attach File
Browse Local Files
Browse Content Collection
Transcribed Image Text:PROBLEM: Write a program that prompts the user to input the amount of money that an ATM machine will dispense and then show the breakdown of how many 1000, 500, and 100 peso bill/s are dispensed. The program must display the amount then prompt the user if the transaction will continue or not by choosing between Y (for Yes) and N (for No). If an invalid character is entered, it must display that the user entered an invalid character. The program must also display that the maximum allowable amount is 10,000 and the minimum allowable amount is 100. If the entered amount is greater than 10,000 or less than 100, an error notification must be displayed. Moreover, the entered amount must be exactly divisible by 100. SPECIFICATIONS: - You may only use the codes that we studied under our lectures All lines of codes should have a comment. - Save your cpp file as Surname - PE (Example: Pangaliman - PE.cpp) TEST CASES: If a user inputs an amount less than or equal to 10,000: REMINDER: Maximum amount must only be 10,000 and the minimum amount must not be less than 100 Enter Amount to dispense: 4900 The Amount of money you entered is 4900. Do you want to continue your transaction? Enter Y for "Yes' and N for 'no': Y Breakdown of dispensed peso bill: The number of dispensed 1000-peso bills is 4 The number of dispensed 500-peso bills is 1 The number of dispensed 100-peso bills is 400 If a user inputs an amount less than or equal to 10.000: REMINDER: Maximum amount must only be 10,000 and the minimum amount must not be less than 100 Enter Amount to dispense: 7400 The Amount of money you entered is 7400. Do you want to continue your transaction? Enter Y for 'Yes' and N for 'no': Y Breakdown of dispensed peso bill: The number of dispensed 1000-peso bills is 7 The number of dispensed 500-peso bills is 0 The number of dispensed 100-peso bills is 400 Attach File Browse Local Files Browse Content Collection
Expert Solution
steps

Step by step

Solved in 4 steps with 4 images

Blurred answer
Knowledge Booster
Mathematical functions
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
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
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