1. Create CarLoan object (see CheckingAccountClient line 9 on page 667). 2. Read the file one payment at a time (Include exception handling code see example on page 755). 3. Use the payment read from the file to pass the information to method to calculate

Programming in Java

Inheritance and Exception Handling

The ability to use methods and variables from another class is critical to the Java programming language. This week inheritance and exception handling techniques are explored. Since performance is an issue with Exception handling is important to use them only for compiler checked errors. To identify the checked exceptions is essential to developing efficient coding.

Assignment:

GoBank has been asked to go back and reprocess the loan payments for a car loan of $18,875. The car loan is a 0% interest loan. The loan is for 60 months. The customer does not believe the bank has the correct outstanding balance for her loan ($12,500). The customer has copies of 20 payments made to the bank. A clerk makes a copy of the payments and enters them into a file.

To verify the banks total, read the file and write a program using a CarLoan class that extends the BankAccount class (found on page 671 – 672 in the textbook).

The CarLoan class has the following features.

1) An overload constructor that initializes the car loan balance. (Hint: Uses super to set the balance.)

Create a CarLoanClient class that

1.    Create CarLoan object (see CheckingAccountClient line 9 on page 667).

2.    Read the file one payment at a time (Include exception handling code see example on page 755).

3.    Use the payment read from the file to pass the information to method to calculate the outstanding balance. Hint: Use the withdrawal method.

4.    Printout the payment number, payment amount and outstanding balance.

5.    Continue to process for each payment until the end of the file.

Create a text file with the following numbers.

Monthly Payment

315

451

315

374

353

315

450

484

412

315

495

476

321

315

406

329

326

356

315

325

Please submit your screenshots and code in a file

 

 

Just in case you need an assignment done, hire us. Using our writing services will make your life easier because we deliver exceptional results. Use us to get an A!

We are the Best!

course-preview

275 words per page

You essay will be 275 words per page. Tell your writer how many words you need, or the pages.


12 pt Times New Roman

Unless otherwise stated, we use 12pt Arial/Times New Roman as the font for your paper.


Double line spacing

Your essay will have double spaced text. View our sample essays.


Any citation style

APA, MLA, Chicago/Turabian, Harvard, our writers are experts at formatting.


We Accept

Secure Payment
Image 3

Subjects We Cover