Instruction: Create a flowchart and a java program of the problem stated as follows. Create user-defined methods that will perform 4 functionalities of an Automated Teller Machine(Withdraw, Deposit, Transfer, Balance Check) 1. Withdraw (method name: withdraw) * Input the amount to be withdrawn. Compute for the remaining balance after the operation (balance = balance - withdrawn) 2. Deposit (method name: deposit) * Input the amount to be deposited. Compute for the updated balance after the operation (balance = balance + deposit) 3. Transfer (method name: transfer) *Input the account number and the amount to be transferred. Compute for the updated balance after the operation (balance = balance – moneySent) 4. Balance Check (method name: balanceCheck) * Display the remaining balance. Sample Input/Output: Depicted below are sample outputs when the program is executed (the items in bold characters are input from the user, while the items in bold italic are calculated and printed by the program): *Note: The initial balance is 0. The user is given an option to check the balance or not. The program will run until the exit option is chosen.
Instruction:
Create a flowchart and a java program of the problem stated as follows. Create
user-defined methods that will perform 4 functionalities of an Automated Teller
Machine(Withdraw, Deposit, Transfer, Balance Check)
1. Withdraw (method name: withdraw)
* Input the amount to be withdrawn. Compute for the remaining balance after
the operation (balance = balance - withdrawn)
2. Deposit (method name: deposit)
* Input the amount to be deposited. Compute for the updated balance after
the operation (balance = balance + deposit)
3. Transfer (method name: transfer)
*Input the account number and the amount to be transferred. Compute for the
updated balance after the operation (balance = balance – moneySent)
4. Balance Check (method name: balanceCheck)
* Display the remaining balance.
Sample Input/Output:
Depicted below are sample outputs when the program is executed (the items in bold
characters are input from the user, while the items in bold italic are calculated and
printed by the program):
*Note: The initial balance is 0. The user is given an option to check the balance or not.
The program will run until the exit option is chosen.
![-ATM-
---------ATM--
1. Withdraw
2. Deposit
3. Transfer
1. Withdraw
2. Deposit
3. Transfer
4. Check Balance
4. Check Balance
5. EXIT
5. EXIT
Choose operation:1
Choose operation: 1
Enter amount to be withdrawn: 1000
Enter amount to be withdrawn: 6000
Collect your money
Insufficient Balance
Check Balance? 1. Yes 0. No: 1
Check Balance? 1. Yes 0. No: 1
Balance: 4000
Balance: 4500
-ATM-
-ATM-
1. Withdraw
2. Deposit
1. Withdraw
2. Deposit
3. Transfer
3. Transfer
4. Check Balance
4. Check Balance
5. EXIT
Choose operation: 2
Enter amount you want to deposit: 500
Check Balance? 1. Yes 0. No: 0
5. EXIT
Choose operation: 3
Balance: 4500
*Note: The initial balance is 0. The user is given an option to check the balance or not.
The program will run until the exit option is chosen.](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Febf54692-9559-4fa7-833a-d6b113e86bd6%2F7883df05-7b1b-474c-8272-0f3924b08401%2F7c0pzf_processed.png&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Step by step
Solved in 3 steps with 4 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
![Concepts of Database Management](https://www.bartleby.com/isbn_cover_images/9781337093422/9781337093422_smallCoverImage.gif)
![Prelude to Programming](https://www.bartleby.com/isbn_cover_images/9780133750423/9780133750423_smallCoverImage.jpg)
![Sc Business Data Communications and Networking, T…](https://www.bartleby.com/isbn_cover_images/9781119368830/9781119368830_smallCoverImage.gif)