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. 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. An overload constructor that initializes the car loan balance. Create a text file with the following numbers.

Inheritance and exception handling are two important concepts in the Java programming language. Inheritance allows a class to inherit methods and variables from another class, while exception handling helps in dealing with errors and exceptions in a program.

When it comes to exception handling, it is crucial to use it only for compiler checked errors to ensure efficient coding and performance. Compiler checked errors are errors that are checked during the compilation process, as opposed to runtime errors which occur during the execution of a program.

In this scenario, GoBank has been requested to reprocess loan payments for a car loan of $18,875. The loan is a 0% interest loan and is for a duration of 60 months. The customer believes that the bank has made an error in calculating the outstanding balance for the loan, which they claim should be $12,500. The customer has copies of 20 payments made to the bank, which have been entered into a file by a clerk.

To verify the total balance, we need to read the file and write a program using a CarLoan class that extends the BankAccount class. The BankAccount class can be found on pages 671-672 of the textbook. The CarLoan class will have an overload constructor that initializes the car loan balance.

To start, create a text file containing the necessary payment information. This file should contain the following numbers, representing the payment amounts:

To develop the program, we will utilize the CarLoan class that extends the BankAccount class. The CarLoan class will have a constructor that initializes the car loan balance. This constructor can be overloaded to accept different parameters, allowing flexibility in initializing the loan balance.

To read the payment information from the file, we will use file input/output operations in Java. This involves opening the file, reading the numbers, and storing them in an array or any other appropriate data structure.

Next, we will calculate the total balance of the loan by summing up the payment amounts. We can use the methods and variables inherited from the BankAccount and CarLoan classes to perform the necessary calculations.

Finally, we can compare the calculated total balance with the expected balance of $12,500 to determine if there is an error in the bank’s calculation.

In conclusion, the task at hand involves using inheritance and exception handling techniques in Java to verify the outstanding balance of a car loan. By utilizing the CarLoan class that extends the BankAccount class and handling any potential exceptions, we will be able to efficiently process the loan payments and compare the calculated balance with the expected balance.

Need your ASSIGNMENT done? Use our paper writing service to score better and meet your deadline.


Click Here to Make an Order Click Here to Hire a Writer