Question: need this code in java please Create a class called bank. This class has variables such as - Customer name - Customer account number -

need this code in java please need this code in java please Create a class called bank. This

Create a class called bank. This class has variables such as - Customer name - Customer account number - Customer's type of account Type of transaction (Withdrawl / Deposit / Transfer) - Account balance Using Scanner class get the user input for the variables mentioned above. Whenever an amount greater than a specific amount (for example: 10000 USD is the maximum limit for deposit during each transaction) is deposited, an ArithmeticException is thrown. Whenever an incorrect input is entered, an inputMismatchException is thrown. Whenever the balance amount is less than a minimum balance amount (for example: 20 USD is the minimum account balance)an ArithmeticException is thrown. Show exception handling in your program using any one of the three ways given below * Use try catch blocks to handle exception in your program Use try.catch-throw statements to handle exception in your program * Use try-catch-throw throws statements to handle exception in your program

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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!