Answered step by step
Verified Expert Solution
Link Copied!

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
image text in transcribed
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

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

Fundamentals Of Database Systems

Authors: Ramez Elmasri, Shamkant B. Navathe

7th Edition Global Edition

1292097612, 978-1292097619

More Books

Students also viewed these Databases questions

Question

Question Can I collect benefits if I become disabled?

Answered: 1 week ago

Question

Question May I set up a Keogh plan in addition to an IRA?

Answered: 1 week ago