Answered step by step
Verified Expert Solution
Question
1 Approved Answer
JAVA Exercise 7 (20 pts): Design a simple ATM service kiosk. This kiosk supports the following options for its menu: 1. View your account balance
JAVA
Exercise 7 (20 pts): Design a simple ATM service kiosk. This kiosk supports the following options for its menu: 1. View your account balance 2. Deposit Cash 3. Withdraw cash 4. Exit Initially, the account balance is $0.00. When you deposit money, this account balance is increased by your deposit amount. Similarly, when you withdraw cash, this account balance is decreased by your withdrawal amount. You cannot withdraw more than what exists in the account, otherwise the ATM machine will display an error message Insufficient Balance!. Similarly, you cannot deposit a negative cash amount. Use if-else statements or a switch statement to perform the respective operation from the menu. 1. View your Balance 2. Deposit Cash 3. Withdraw Cash 4. Exit Enter your selection: 1 Your current balance is 0.00 1. View your Balance 2. Deposit Cash 3. Withdraw Cash 1. Exit Enter your selection: 2 Enter the anount you want to deposit: 100 1. View your Balance 2. Deposit Cash 3. Withdraw Cash 4. Exit Enter your selection: 3 Enter the amount your want to withdraw: 97 1. View your Balance 2. Deposit Cash 3. Withdraw Cash 4. Exit Enter your selection: 1 Your current balance is 3.89 1. View your Balance 2. Deposit Cash 3. Withdraw Cash 4. Exit Enter your selection : 3 Enter the amount your want to withdraw: 5 Sorry you don't have enough balance! 1. View your Balance 2. Deposit Cash 3. Withdraw Cash 4. Exit Enter your selection : 4 GoodbyeStep 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