Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions