Inheritance and exception handling

Assignment Help Business Management
Reference no: EM131618387

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

Make a screenshot of the output and include it as an attachment to the Week 7 Assignment. Also, include the program code in a text file to run on another computer. Comment the code to receive full credit (see page 45).

Reference no: EM131618387

Questions Cloud

Define arthur millers death of a salesman : What is the primary theme of Arthur Miller's Death of a Salesman, and assert why you think attention must be paid
What are george and mary strongest legal arguments : Assignment: Unhealthy Lunches. Do George and Mary have a case? What are their strongest legal arguments? What defense, do school and the restaurant have?
Explain the importance of the inorganic compounds : Explain how energy is invested, stored, and released via chemical reactions, particularly those reactions that are critical to life.
Common pieces of evidence collected : Graphics Files: In the world of computer forensics, graphics files are one of the most common pieces of evidence collected.
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 technique
What made change story experience memorable : What was the change story and what made this change experience memorable? Include an introduction, the body of text, and a conclusion.
Identifies fallacious reasoning in the story : In a 1-page essay, provide an analysis that identifies fallacious reasoning in the story and explain why.
Define equal support to all types of families : the government should act to promote the nuclear family model or should it give equal support to all types of families
What control would recommend for honest bidding process : Bidding Process. Maine Construction builds office buildings. The buildings generally cost between $5 million and $8 million to build, and the plumbing can cost.

Reviews

Write a Review

Business Management Questions & Answers

  Challenges their impact on the employees and employerswhat

challenges their impact on the employees and employerswhat are special challanges with regards tostrategic

  Scores for mobile and jackson

He wishes to move the Warriors south, to either Mobile ( Alabama) or Jackson ( Mississippi). The table below gives the factors that Gilbert thinks are important, their weights, and the scores for Mobile and Jackson.

  Total amount of interest that was paid

Now, one year later, your aunt must file Schedule B of her tax return with the IRS informing them of the interest that was included in the two payments made during the year. (This interest will be income to your aunt and a deduction to the buyer o..

  Wbs for a software development project

Assume the following major tasks and develop a WBS for a software development project.

  Role of capital investment analysis

Explain the role of capital investment analysis of this company.

  Identify two types of staffing models that could apply

Identify two types of staffing models that could apply to your chosen scenario and determine which model would be best suited for efficiency, productivity, and possible future growth.

  Is crowdsourcing used in your country or region

What activities are performed in the marketing strategy development step of the new product development process?

  Economic recession affect management bargaining power

How does an economic recession affect management's bargaining power? How is a union's power affected? Conduct research and discover three historical examples of recessions affecting bargaining power. Which party is most negatively affected by a re..

  Define a business process

Compare book's methodology to the methodology you found in your research - Define a business process and give an example.

  What social responsibilities does tims coffee shoppe have

When there has been a significant downturn in the regional economy, how can Tim's Coffee Shoppe take social responsibility? What social responsibilities does Tim's Coffee Shoppe have to the community in which it is located? How can Tim's encourage su..

  Reasons why change is resisted strategies for leading

reasons why change is resisted strategies for leading change1. show five to seven reasons why change is resisted

  What was arco chemicals rationale for globalizing

What was ARCO Chemical's rationale for globalizing? - What advantages has ARCO Chemical realized from its global operations?

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