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

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  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 gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

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