Answered step by step
Verified Expert Solution
Question
1 Approved Answer
CSCI 1 3 0 1 - Spring 2 0 2 4 Homework 9 - Assigned February 2 8 , due March 1 3 Create a
CSCI Spring
Homework Assigned February due March
Create a program that simulates a ATM.
The user will have an account that starts with no money. The user may:
Check their balance
Make a deposit
Make a withdraw
Quit
When checking their balance you must print out the account balance with exactly two digits after the decimal.
When making a deposit the user must enter a positive number. The amount entered should be added to their account.
When making a withdraw, the user must enter a positive number that doesn't exceed their balance. If the user selects an invalid option then the program should information the user that is not allowed to select that.
The program should keep asking the user for input until the user decides to quit.
If the user makes any of the error listed above, the program should inform the user of the error and return to the menu.
Your grade will be based on good programming technique comments variable names, assumptions, etc. correct outputs correct mathematical computations and correct program output good user interfaceexplanations
As part of your upload include your java file and a picture of the programming being run on your machine a screen capture like the example given is fine.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started