![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 22.09.2020 14:01 kmsg2000
Create class SavingsAccount. 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 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 program to test class SavingsAccount. Instantiate two savingsAccount objects, saver1 and saver2, with balances of $2000.00 and $3000.00, respectively. Set annualInterestRate to 4%, then calculate the monthly interest for each of 12 months and print the new balances for both savers. Next, set the annualInterestRate to 5%, calculate the next month’s interest and print the new balances for both savers.
![ansver](/tpl/images/cats/User.png)
Answers: 3
![](/tpl/images/ask_question.png)
![](/tpl/images/ask_question_mob.png)
Another question on Computers and Technology
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 05:00
Modern businesses use different technologies to accomplish work tasks
Answers: 2
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 05:20
Which operating system is a version of linux?
Answers: 1
![question](/tpl/images/cats/informatica.png)
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 18:00
Which is a possible benefit of having a good credit history? having a checking account low interest rate on a car loan high interest rate on a credit card offer bankruptcy
Answers: 1
You know the right answer?
Create class SavingsAccount. Use a static variable annualInterestRate to store the annual interest r...
Questions
![question](/tpl/images/cats/mat.png)
Mathematics, 13.07.2019 12:00
![question](/tpl/images/cats/en.png)
English, 13.07.2019 12:00
![question](/tpl/images/cats/istoriya.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 13.07.2019 12:00
![question](/tpl/images/cats/istoriya.png)
History, 13.07.2019 12:00
![question](/tpl/images/cats/istoriya.png)
History, 13.07.2019 12:00
![question](/tpl/images/cats/mat.png)
Mathematics, 13.07.2019 12:00
![question](/tpl/images/cats/ekonomika.png)
![question](/tpl/images/cats/es.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 13.07.2019 12:00
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mir.png)
World Languages, 13.07.2019 12:00
![question](/tpl/images/cats/istoriya.png)
History, 13.07.2019 12:00
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/istoriya.png)
History, 13.07.2019 12:00
![question](/tpl/images/cats/mat.png)
Mathematics, 13.07.2019 12:00
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 13.07.2019 12:00