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

  What is the paintcomponent method how is it used in java

q1. what is the paintcomponent method? how is it used in java graphics? how does a program intentionally cause the

  Implement the fraction class

Implement the Fraction Class, Add the following functions into the definition of the Fraction class above main. The main function already has the calls to those functions written. You must write the required functions into the Fraction class such..

  Java program to find a value at in index

Construct a main class named Array Program that generates an array of 50-integers, all ranging from one to one hundred.

  Prepare executable program and a dictionary program

Prepare executable program and a dictionary Program.

  Implement a simple paddle ball game

Implement a simple paddle ball game. Paddle Ball Game Overview The paddle ball game is a simplification of the Pong game. In the Pong game, a ball is moving around the display, bouncing off walls.

  Implement a class called reversewords

Implement a class called ReverseWords that uses a stack to output a set of elements input by the user in reverse order.

  Sentence patterns and verb formulas

Provide the sentence pattern. Write out the sentence pattern - then write out the tense of the verb and provide the formula.

  Create a class for services offered by a hair-styling salon

Create a class for services offered by a hair-styling salon. Data fields include a String to hold the service description and write an application named Salon Report that contains an array to hold six Service objects and fill it with the data

  Java program that allows the user to enter a letter

Write a java program that allows the user to enter a letter (as a code) and a real number (as the radius of a circle). If the letter is 'A' your program must calculate the area of the circle. If the letter is 'C' your program must calculate the ci..

  Create one cascading style sheet

Create two Web pages describing what is displayed and how and Create one Cascading Style Sheet (.css) file with background color, font type, and font size, and assign it to both Web pages.

  Improve the efficiency of their operations

To help improve the efficiency of their operations, the Maitre De has hired you to write a program that simulates people waiting for tables. The goal is to determine the average amount of time people spend waiting for tables.

  Create a constructor with three default parameters

How can you create a constructor with three default parameters two of type string and one double?

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