We help IT Professionals succeed at work.

I would really appreciate if i could get the program code for the question below.

sangeeta74
sangeeta74 asked
on
Medium Priority
459 Views
Last Modified: 2013-11-23
Create a class SavingsAccount. Use a static class
variable to store the annualInterestRate for each of the savers. Each
object of the class contains a private instance variable savingsBalance
indicating the amount the saver currently has on deposit. Provide method calculateMonthlyInterest
to calculate the monthly interest by multiplying the balance by annualInterestRate
divided by 12; this interest should be added to savingsBalance. Provide a
static method modifyInterestRate that sets the annualInterestRate
to a new value. Write a driver program to test the class SavingsAccount.
Instantiate two different savingsAccount objects, saver1 and saver2,
with balances of $2000.00 and $3000.00, respectively. Set annualInterestRate
to 4%, then calculate the monthly interest and print the new balances for each of the
savers. Then set the annualInterestRate to 5% and calculate the next
months interest and print the new balances for each of the savers.

Write another class SpecialSavings that extends SavingsAccount
to pay interest of 10% on accounts that have balances that exceed 10K. Also
provided methods to deposit and take money out of savings account. Write a
driver program to test the class SpecialSavings. Instantiate two different
savingsAccount objects, saver1 and saver2, with balances
of $2000.00 and $3000.00, respectively. Make a few deposits and withdrawals
and show balance and interest earned for each account.

Comment
Watch Question

You can post a question to several zones at once.  You have a duplicate here:

http://www.experts-exchange.com/Programming/Languages/Q_24131519.html

Which someone answered, although it is against EE policy to ask for, or to give, answers to homework questions.  Post the code you've written so far, and then ask specific questions in order to get help, not full solutions.

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.