Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please Solve this coding problem for me, answer justing Java Create a class called bank. This class has variables such as - Customer name -
Please Solve this coding problem for me, answer justing Java
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 input MismatchException 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started