Create a carloanclient class that read the file one payment

Assignment Help JAVA Programming
Reference no: EM131143858

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.
2. Read the file one payment at a time.
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

Reference no: EM131143858

Questions Cloud

What is the company where themis system going to be : What is the company where this MIS system going to be? What is the industry this company participates in? Who does this company compete with? Does this new system fit with the company's mission statement?
What foster care or respite services are available : What services are available in your area to support Mary in parenting? As an example, look for parenting classes, long-term nurse home visiting, or an assisted living facility for those with developmental disabilities that would accept Mary and he..
Prepare the closing entries for the dionne : The trial balance of Dionne's Boutique at December 31 shows Merchandise Inventory $21,000, Sales $136,000, Sales Returns and Allowances $4,000, Sales Discounts $3,000, Cost of Goods Sold $92,400, Interest Revenue $5,000, Freight-out $1,500, Utilities..
What type of shock was cc experiencing : Because of his many open wounds and invasive lines, CC is at risk for sepsis and septic shock. What clinical findings would suggest that this complication has developed? What is the link between sepsis and multiple organ dysfunction syndrome ..
Create a carloanclient class that read the file one payment : Create a CarLoanClient class that Read the file one payment at a time, Printout the payment number, payment amount and outstanding balance.
Record the transactions on the books : Assume information similar to that in Do It! 5-1. That is: On October 5, Lane Company buys merchandise on account from O'Brien Company.
How could a community health nurse help meet this objective : Discuss one specific numbered Healthy People 2020 objective (not a goal) related to this community health role. How could a community health nurse help meet this objective?
What is the company total paid-in capital : Does the company have any preferred stock outstanding? What is the nominal value, book value, market value per share of common stock? What is the company's total paid-in capital? Compute net working capital and comment on the result
Record the transactions on the books of lane company : On October 5, Lane Company buys merchandise on account from O’Brien Company.

Reviews

Write a Review

JAVA Programming Questions & Answers

  What is method overloading

1. What is method overloading? 2. What is the purpose of a constructor? 3. How do you call a method of one class from a method of another class?

  Write a program to read and add polynomials

Write a program to read and add polynomials - If the exponents are equal, then create a new term with that exponent and the sum of the coefficients, and advance both iterators.

  Write a program that plays a word game with the user

Write a program that plays a word game with the user. The program should ask the user to enter the following.

  Button to increase or decrease the number of the balls

Simulates a bouncing ball. Extend to allow mulitple balls. You can use the +I or -I button to increase or decrease the number of the balls and use teh Suspend and Resume buttoms to freeze the balls or resume bouncing. For each ball, assign a random c..

  Program that allows user to search internet account number

Read, validate and store account number and internet usage for N customers - Calculate, store and display the cost for all customers and Calculate, store and display the cost for all customers

  Write a java class

Write a Java class called PQueue that extends the provided abstract QueueADT class.

  Create a graphical application stackdemogui

Create a graphical application StackDemoGUI that provides a button for push and pop from a stack, a text field to accept a string as input for push, and a text area to show the contents of the stack after each operation.

  Writing a program to calculate the terms

The third programming project involves writing a program to calculate the terms of the following sequence of numbers: 0 1 2 5 12 29 ... where each term of the sequence is twice the previous term plus the second previous term. The 0th term of the s..

  Compute the total annual compensation of a salesperson

Write a Java application using NetBeans Integrated Development Environment (IDE) that calculates the total annual compensation of a salesperson. Consider the following factors: A salesperson will earn a fixed salary of $35,750

  Create a book class

Create a Book class. In addition to properties of author and isbn, with setters/getters, the Book should override Object's base method "boolean equals(Object)" and have a "boolean validate()" method.

  Demonstrate instances of each class and tests

Demonstrate instances of each class and tests of all control paths in a program.

  Write a version of sumpairs

Write a version of sumPairs  that sums each component of the pairs separately, returning a pair consisting of the sum of the first components and the sum of the second components. So basically [(3,1)(10,3)] would return (13,4).

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd