1. Engineering
  2. Computer Science
  3. you have been hired by a local bank just started...

Question: you have been hired by a local bank just started...

Question details

You have been hired by a local bank just started by a newly developed company. The bank is just starting up. They have hired you to write a program to look at a customer’s existing account, make deposits, withdraw funds, and transfer funds from their account. For our example, your current savings account has $3000 and your checking account has $650. You want to deposit $1,250 into your checking account and to transfer $550 from your saving account to your checking account. Assume your starting balance is as stated ($3000 for savings and $650 for checking). You need to write a banking program in Java. You need 5 methods: depositSavings, depositChecking, withdrawalSavings, withdrawalChecking, transferSavingsToChecking. The program requires user input.

Example Output:

What do you wish to do today?

1 for deposit to savings

2 for deposit to checking

3 for withdraw from savings

4 for withdraw from checking

5 for transfer funds from savings to checking

2 – you chose to make a deposit to checking. How much would you like to deposit? 1250

Your total in checking is $1850

Would you like another transaction? Y

What do you wish to do today?

1 for deposit to savings

2 for deposit to checking

3 for withdraw from savings

4 for withdraw from checking

5 for transfer funds from savings to checking

5

Your current balance in savings is $3000. How much do you want to transfer?

550

Your total in checking is $2400. Your total in savings is $2450.

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution