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,...



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)




Required:

The flowchart, the .java file (FamilyName_ATM.java) containing the code and 4 (or more) image files (Sample1, Sample2, Sample3, and Sample4) containing different sample input/output of the program.


Instruction:<br>Create a flowchart and a java program of the problem stated as follows. Create<br>user-defined methods that will perform 4 functionalities of an Automated Teller<br>Machine(Withdraw, Deposit, Transfer, Balance Check)<br>1. Withdraw (method name: withdraw)<br>* Input the amount to be withdrawn. Compute for the remaining balance after<br>the operation (balance = balance - withdrawn)<br>2. Deposit (method name: deposit)<br>* Input the amount to be deposited. Compute for the updated balance after<br>the operation (balance = balance + deposit)<br>3. Transfer (method name: transfer)<br>*Input the acCount number and the amount to be transferred. Compute for the<br>updated balance after the operation (balance = balance – moneySent)<br>-<br>4. Balance Check (method name: balanceCheck)<br>* Display the remaining balance.<br>

Extracted text: 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:<br>Depicted below are sample outputs when the program is executed (the items in bold<br>characters are input from the user, while the items in bold italic are calculated and<br>printed by the program):<br>-ATM-<br>-ATM-<br>1. Withdraw<br>2. Deposit<br>1. Withdraw<br>2. Deposit<br>3. Transfer<br>3. Transfer<br>4. Check Balance<br>5. EXIT<br>Choose operation: 1<br>Enter amount to be withdrawn: 1000<br>Collect your money<br>Check Balance? 1. Yes 0. No: 1<br>4. Check Balance<br>5. EXIT<br>Choose operation: 1<br>Enter amount to be withdrawn: 6000<br>Insufficient Balance<br>Check Balance? 1. Yes 0. No: 1<br>Balance: 4000<br>Balance: 4500<br>-ATM-<br>--ATM--<br>1. Withdraw<br>2. Deposit<br>1. Withdraw<br>2. Deposit<br>3. Transfer<br>3. Transfer<br>4. Check Balance<br>4. Check Balance<br>5. ΕXIT<br>5. EXIT<br>Choose operation: 2<br>Enter amount you want to deposit: 500<br>Choose operation: 3<br>Balance: 4500<br>Check Balance? 1. Yes 0. No: 0<br>*Note: The initial balance is 0. The user is given an option to check the balance or not.<br>The program will run until the exit option is chosen.<br>Required: The flowchart, the .java file (FamilyName_ATM.java) containing the code and<br>4 (or more) image files (Sample1, Sample2, Sample3, and Sample4) containing different<br>sample input/output of the program.<br>

Extracted text: 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): -ATM- -ATM- 1. Withdraw 2. Deposit 1. Withdraw 2. Deposit 3. Transfer 3. Transfer 4. Check Balance 5. EXIT Choose operation: 1 Enter amount to be withdrawn: 1000 Collect your money Check Balance? 1. Yes 0. No: 1 4. Check Balance 5. EXIT Choose operation: 1 Enter amount to be withdrawn: 6000 Insufficient Balance 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. ΕXIT 5. EXIT Choose operation: 2 Enter amount you want to deposit: 500 Choose operation: 3 Balance: 4500 Check Balance? 1. Yes 0. No: 0 *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. Required: The flowchart, the .java file (FamilyName_ATM.java) containing the code and 4 (or more) image files (Sample1, Sample2, Sample3, and Sample4) containing different sample input/output of the program.
Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here