Computers and Technology, 28.02.2021 16:50 heyheyhola
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 setInterestRate that sets the annualInterestRate to a new value. There should also be a method setSavingsBalance to set the initial savings balance for a new saver or you can do it through a constructor.
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 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.
If you run this java file right now, it only prints out the amount for 1 month. How can you make my program so that it prints the amount for 13 months?
It should print out
Month 1: 2006.67
Month 2: 2013.36
Month 3: 2020.07
Month 4: 2026.80
etc.
after 12 month, change the rate to be 5 percent
Answers: 3
Computers and Technology, 22.06.2019 10:00
Wich technology can a website use to allow you to listen to a concert live over the internet?
Answers: 3
Computers and Technology, 22.06.2019 18:30
Which of the following commands is more recommended while creating a bot?
Answers: 1
Computers and Technology, 23.06.2019 09:30
You wanted to look up information about alzheimer's, but you were unsure if it was spelled "alsheimer's" or "alzheimer's." which advanced search strategy would be useful? a) a boolean search b) using a wild card in your search c) trying different search engines d) doing a search for "alsheimer's not alzheimer's" asap. ill give brainlist.
Answers: 1
Computers and Technology, 23.06.2019 14:00
In which job role will you be creating e-papers, newsletters and preiodicals
Answers: 1
Create class SavingsAccount. Use a static variable annualInterestRate to store the annual interest r...
Chemistry, 20.02.2021 20:30
Chemistry, 20.02.2021 20:30
World Languages, 20.02.2021 20:30
Mathematics, 20.02.2021 20:30
Mathematics, 20.02.2021 20:30
Biology, 20.02.2021 20:30
Mathematics, 20.02.2021 20:30
Advanced Placement (AP), 20.02.2021 20:30
Mathematics, 20.02.2021 20:30
History, 20.02.2021 20:30