Question: 2. Write a menu driven programs in Java to implement bank transactions Deposit, Withdrawl, Check balance. A bank customer has the attributes - acountno, name,balance,branchcode.

 2. Write a menu driven programs in Java to implement bank

2. Write a menu driven programs in Java to implement bank transactions Deposit, Withdrawl, Check balance. A bank customer has the attributes - acountno, name,balance,branchcode. Deposit will add the entered amount to balance and withdrawl will deduct the entered amount from balance and Check_balance will display the balance. If the entered amount is negative then throw NegativeAmountException and display a message to try again. 2. Write a menu driven programs in Java to implement bank transactions Deposit, Withdrawl, Check balance. A bank customer has the attributes - acountno, name,balance,branchcode. Deposit will add the entered amount to balance and withdrawl will deduct the entered amount from balance and Check_balance will display the balance. If the entered amount is negative then throw NegativeAmountException and display a message to try again

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To create a menudriven Java program to handle bank transactions well need to define a BankCustomer class and a NegativeAmountException Then well imple... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!