Create a java program using user-defines methods that will perform the 3 major functionalities of an Automated Teller Machine(Withdraw, Deposit, Balance Check) 1. Withdraw * Input the amount to be withdrawn. Compute for the remaining balance after the operation (balance = balance - withdrawn) 2. Deposit * Input the amount to be deposited. Compute for the updated balance after the operation (balance = balance + deposit) 3. Balance Check * Display the remaining balance. Use the following method names: withdraw, deposit, checkBalance SAMPLE OUTPUT: -ATM-- 1. Withdraw 2. Deposit 3. Check Balance 4. EXIT Choose operation: 1 Enter amount to be withdrawn: 6000 Insufficient Balance Check Balance? 1. Yes 0. No: 1 Balance: 4500

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter9: Advanced Modularization Techniques
Section: Chapter Questions
Problem 7PE
icon
Related questions
Topic Video
Question
100%

Create a java program

 

Create a java program using user-defines methods that will perform the 3 major
functionalities of an Automated Teller Machine(Withdraw, Deposit, Balance Check)
1. Withdraw
* Input the amount to be withdrawn. Compute for the remaining balance after
the operation (balance = balance - withdrawn)
2. Deposit
* Input the amount to be deposited. Compute for the updated balance after
the operation (balance = balance + deposit)
3. Balance Check
* Display the remaining balance.
Use the following method names: withdraw, deposit, checkBalance
SAMPLE OUTPUT:
ATM-
1. Withdraw
2. Deposit
3. Check Balance
4. EXIT
Choose operation: 1
Enter amount to be withdrawn: 6000
Insufficient Balance
Check Balance? 1. Yes 0. No: 1
Balance: 4500
Transcribed Image Text:Create a java program using user-defines methods that will perform the 3 major functionalities of an Automated Teller Machine(Withdraw, Deposit, Balance Check) 1. Withdraw * Input the amount to be withdrawn. Compute for the remaining balance after the operation (balance = balance - withdrawn) 2. Deposit * Input the amount to be deposited. Compute for the updated balance after the operation (balance = balance + deposit) 3. Balance Check * Display the remaining balance. Use the following method names: withdraw, deposit, checkBalance SAMPLE OUTPUT: ATM- 1. Withdraw 2. Deposit 3. Check Balance 4. EXIT Choose operation: 1 Enter amount to be withdrawn: 6000 Insufficient Balance Check Balance? 1. Yes 0. No: 1 Balance: 4500
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
Instruction Format
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
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage