Implement an inheritance hierarchy based on the following

Assignment Help JAVA Programming
Reference no: EM13729610

Implement an inheritance hierarchy based on the following specifications for Account class, Checking Account class, and Savings Account class:

Account class

Methods: 
processDeposit ( ) - accepts a single double parameter containing the deposit amount. Updates the balance by adding the deposit amount to the balance. 
processWithdrawal ( ) - accepts a single double parameter containing the withdrawal amount. Updates the balance by subtracting the withdrawal amount for the balance. Note: For now do not worry about negative balances. 
calcInterest ( ) - Coded as a double method with an empty body.
Attributes: 
String Account Name 
Integer Account ID 
Double balance 
Constructor
Prompt the user and accept input for the Account Name, Account ID and the initial balance. 

The CheckingAcct class which is a derived class of the Account class. 

Attributes:
Inherits all the attributes of the Account class. 
The overDraftFee is double and is populated in the constructor of the CheckingAcct class. 
Methods:
calcInterest () - If the account balance is greater than or equal to 3000.00 an interest rate of 1% or .01 is applied to increase the balance.
Constructor:
Prompt the user for the OverDraftFee. 

The SavingsAcct class which is a derived class of the Account class. 

Attributes:
Inherits all the attributes of the Account class.
There are no other attributes. 
Methods: 
calcInterest ( ) - If the account balance is greater than or equal to 5000.00 an interest rate of 4% or .04 is applied to increase the balance. If the balance is greater than or equal to 3000.00 an interest rate of 3% or .03 is applied to increase the balance. Otherwise use an interest rate of 2%. The new balance is returned to the calling program. 
Constructor: 
Inherited from the Account class. (no code needed) 

Main: 

Prompt the user for the bank name and routing number. Create at least two account objects (each of a different type). Process a deposit then withdraw then calculate the interest for each account. Generate the following report:

Bank Name: XXXXXXXX Routing Number: XXXXXX

Account Name: XXXXXX Account ID: XXXXXXXXX Balance: 9999.99

Account Name: XXXXXX Account ID: XXXXXXXXX Balance: 9999.99 

Reference no: EM13729610

Questions Cloud

Invest in a new computer system : Walker & Campsey wants to invest in a new computer system, and management has narrowed the choice to Systems A and B. System A requires an up-front cost of $100,000, after which it generates positive after-tax cash flows of $60,000 at the end of each..
What is the accumulated sum of streams of payments : What is the accumulated sum of each of the following streams of payments?
Evaluate the performance of the organization : Complete the Assignment section of the Balanced Scorecard Module to evaluate the performance of the organization against established standards. Complete the following:
Statement of cash flows is the last of four financial : The statement of cash flows is the last of the four financial statements we discussed. Explain why this statement is important to investors and how it complements the income statement and balance sheet. You should be able to answer this question in s..
Implement an inheritance hierarchy based on the following : Implement an inheritance hierarchy based on the following specifications for Account class, Checking Account class, and Savings Account class Methods: processDeposit ( ) - accepts a single double parameter containing the deposit amount. Updates the ..
Accumulate depreciation on the balance sheet : How does depreciation expense on the income statement relate to accumulate depreciation on the balance sheet?
How many years do these bonds have left until they mature : Backwater Corp. has 10 percent coupon bonds making annual payments with a YTM of 9.2 percent. The current yield on these bonds is 9.55 percent. How many years do these bonds have left until they mature?
Discuss the the importance of the baby boom : Discuss the the importance of the baby boom, what it is, people involved, the impact it had on America and the world during 1946 to 1960.
Saving plan : Miller's Hardware plans on saving $42,000, $54,000, and $58,000 at the end of each year for the next three years, respectively. How much will the firm have saved at the end of the three years if it can earn 4.5% on its savings?

Reviews

Write a Review

JAVA Programming Questions & Answers

  Uml exercise automated teller machine atmnbspbrief

uml exercise automated teller machine atmnbspbrief statement of purposean atm is an electronic device designed for

  Part-11 suppose we have a rectangle class that includes

part-11. suppose we have a rectangle class that includes length and width attributes of type int both set by the

  Public float usefulload()

public float usefulLoad() // this is the grossWeight - emptyWeight public float usefulLoadWithFuel( in gallons ) // this is the useful load - gallons x 6. The programmer user will pass in the number of gallons on board.

  Create file lab7.java with a main method.

Create file Lab7.java with a main method. Inside your main method, write a segment of code which instantiates an object of the Student class (This class has been created for you in the  Student.java  file that is provided as part of this lab).

  Create a panel with borderlayout

Create a panel with BorderLayout. Add a button labeled "OK" to the south side of the panel - given the program, show the values of the array

  Program obtaining the new scriptdownload and save the

program obtaining the new scriptdownload and save the attached comment cgi mailer script form-mail2.pl to your servers

  Display student details and classes in applet

Display student details and classes they have enrolled in Applet. The Applet should have following features. Update and View.

  Program mimics a rudimentary spreadsheet

Change the averages so that they are rounded to the nearest one hundredth. The example above shows averages in format - Change the program so that before the spreadsheet window is displayed, the user sees the window

  Write a program displaying a text file that is in a text are

Write a program displaying a text file that is in a text area. The user enteres a file name in a text field and clicks the view button; the file is then displayed in the text area. Do not use BufferedInputStream.

  Javascript validation - cgi program

CGI mailer script form-mail.pl to your server's cgi-bin directory, and change the permissions on the script to make it executable - BMIS 310

  Create java servlets

Create a new JSON "view" (e.g., a JSP page that only displays the JSON representation of the data)

  Write a recursive instance method

Write a recursive instance method

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