Computers and Technology, 16.04.2020 02:06 Usman458
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 outMonth 1: 2006.67Month 2: 2013.36Month 3: 2020.07Month 4: 2026.80etc. after 12 month, change the rate to be 5 percent
Answers: 3
Computers and Technology, 22.06.2019 16:00
If a client wants to make minor edits, what should he/she use?
Answers: 3
Computers and Technology, 23.06.2019 06:30
Who can provide you with a new password when you have forgotten your old one? your provide you with a new password in case you forget your old one.
Answers: 3
Computers and Technology, 23.06.2019 08:00
Match the items with their respective descriptions.
Answers: 1
Computers and Technology, 24.06.2019 04:30
How do you share someone else’s tweet with your own twitter followers?
Answers: 1
Create class SavingsAccount. Use a static variable annualInterestRate to store the annual interest r...
Social Studies, 20.09.2019 21:30
Health, 20.09.2019 21:30
Mathematics, 20.09.2019 21:30
Mathematics, 20.09.2019 21:30
Mathematics, 20.09.2019 21:30
Biology, 20.09.2019 21:30
Mathematics, 20.09.2019 21:30