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 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
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
Get step-by-step solutions from verified subject matter experts
