Write a program that extends the bankaccount class

Assignment Help JAVA Programming
Reference no: EM131094297

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.

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

Please submit your screenshots and code in a file.

Reference no: EM131094297

Questions Cloud

Eight operations performed in the region : She would like to be accurate within + or - 6 min. Only 420 such operations have been performed  nationwide. For the eight operations performed in the region of Mercy Hospital, X bar= 3.20 hr. and s = .30 hr. The analyst plans to take a random sam..
What are some of the vitiating factors in law of contract : What are some of the vitiating factors in law of contract? List them briefly. Any four factors. You can answer in prise form if you find it suitable.
Would the business judgment rule protect donald trump : What would the default be if you did not have an express agreement and did not choose a specific form of business organization? What liability would you have for any contracts or torts done for the benefit of and in the course of the business?
Specify the value of p when the stack is empty : Let P be a pointer to a singly linked list. Show how this list may be used as a stack. That is, write algorithms to push and pop elements. Specify the value of P when the stack is empty.
Write a program that extends the bankaccount class : 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).
Probability of getting any one of combinations : A person enters a grocery store to shop. There are 15 different brands of cereal and they select 3, one for the next 3 days with order being important. They have 2,730 different combinations. What is the probability of getting ANY ONE of the co..
Will planter succeed in his claim : After a month Planter asked for the return of his car within three days, or payment of $10 000. The car was returned a week later but it was badly damaged after a collision while being used by employees of Baskerville without permission. Planter r..
Write about trial balance and its purpose : Write about Trial balance and its purpose Journalizing the transactions of KD dispensary
Define the random variable under consideration : If 1,000 of these tax returns are randomly selected, what is the approximate probability that between 110 and 140, inclusive, were prepared by H&R Block? Justify the use of the approximation you use, and make sure to define the random variable und..

Reviews

Write a Review

JAVA Programming Questions & Answers

  Provides a method named ispalindrome

Write a complete Java program that provides a method named isPalindrome, which takes aQueue of integers as a parameter and returns true if the numbers in the Queue represent a palindrome (and false otherwise). The empty Queue should be considered ..

  Change code in java program so that input of floating point

Change code in Java program so that input of floating point values is possible.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a program that will simulate the child''s number guess

Create a program that will simulate the child's number guessing game with two players

  Write an interface for an abstract method

Write an interface, PointingDevice, containing:  an abstract method, getXCoord that returns an int and an abstract method, getYCoord that returns an int.

  Fixing errors in a java program

You coded the following on line ten of the class MyApplet.java:

  Design and implement an applet called circles

Design and implement an applet called Circles that draws 50 circles of random diameter in random locations. If the diameter of a circle is less than a certain value, the circle is ?lled with the color yellow.

  Write the string copy and string concatenation functions

Write the string copy and string concatenation functions and first version should use array subscripting, and the second version should use pointer arithmetic.

  The string class and/or the stringbuffer class in java

Create a simple Java application that uses the String class and/or the StringBuffer class and at least 4 of the class methods. Show the code, demonstrate it works properly and describe what it is doing.

  Java enumeration lettergrade represent letter grades

Write a java enumeration LetterGrade that represents letter grades A through F, including plus and minus grades. Define a private instance variable holding a boolean value.

  What steps are involved in your analysis of this problem

Write code to process the 3 possible searches. Sample data is included for testing.

  Write a java program that calculates and displays the result

Write a Java program that calculates and displays the results of addition, subtraction, multiplication, division, modulus, bitwise &, or bitwise | operation on two integer values input by the user.

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