Create class using static variable to store annual interest

Assignment Help Programming Languages
Reference no: EM1361915

Create class SavingAccount. Use a static variable annualInterestRate to store the annual interest rate for all account holders. 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 savingsBalance by annual InterestRate divided by 12; this interest should be added to savingsBalance. Provide a static method modifyInterestRate that sets the annualInterestRate to a new value. A SavingAccount object can be only be opened with a minimum of $1,000.00.

Next, write a program to test class SavingsAccount. Instantiate two SavingsAccount objects, saver1, saver2, saver3 with balances of $900.00, $2,000.00 and $3000.00 respectively. Set annualInterestRate to 4%, then calculate the monthly interest and print the new balances for the valid savers. Then set the annualInterestRate to 5%, calculate the next month's interest and print the new balances for the valid savers.

Reference no: EM1361915

Questions Cloud

Explain what strategic actions should the smucker family : Explain What strategic actions should the Smucker family undertake to further improve the company's financial and market performance?
Style of management when andy introduced her : What did Peggy realize about her own style of management when Andy introduced her to the Gift of the Goose and how did she win the support of the plant managers?
Find magnitudes of the tension forces in the first two ropes : find magnitudes of the tension forces in the first two ropes. what is the velocity of the cart when it reaches its greatest y coordinate.
Longevity and quality of life : What is the long-term outlook for this group in terms of longevity and quality of life?
Create class using static variable to store annual interest : Create class SavingAccount. Use a static variable annualInterestRate to store the annual interest rate for all account holders. Each object of the class contains a private instance variable savingsBalance indicating the amount.
Compare the additional revenue of microsoft makes : Compare the additional revenue Microsoft makes as it moves from 20 million to 40 million copies of Vista with the additional revenue it makes as it moves
Explain approach the presentation as if you are the hr : Explain Approach the presentation as if you are the HR manager for a company and have a 15 minute time slot in a meeting to update or educate your managers on an important human resources matter.
Using historical daily returns : Using historical daily returns, you estimated the following Index model for ET incorporated: rET = .01% + 1.75 r S&P500
Empowerment for managers and its impact on employees : Show the importance of empowerment for managers and the impact it has on employees - Empowerment for Managers and Its Impact on Employees

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

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

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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