subject

Create a SavingsAccount class. Use a static data member annualInterestRate to store the annual interest rate for each of the savers. Each member of the class contains a private
data member savingsBalance indicating the amount the saver currently has on deposit.
Provide member function calculateMonthlyInterest that calculates the monthly interest by
multiplying the balance by annualInterestRate divided by 12; this interest should be added
to savingsBalance. Provide a static member function modifyInterestRate that sets the
static annualInterestRate to a new value. Write a driver program to test class
SavingsAccount. Instantiate two different objects of class SavingsAccount, saver1 and
saver2, with balances of $2000.00 and $3000.00, respectively. Set the annualInterestRate
to 3 percent. Then calculate the monthly interest and print the new balances for each of
the savers. Then set the annualInterestRate to 4 percent, calculate the next month's
interest and print the new balances for each of the savers.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 10:00
Businesses allocate resources for their best and most productive uses. the more a resource, the more costly it will be. a manufacturer that requires scarce and costly resources is likely to charge for its products.
Answers: 2
question
Computers and Technology, 23.06.2019 03:30
Ihave a singular monitor that is a tv for my computer. recently, i took apart my computer and put it back together. when i put in the hdmi cord and booted the computer to see if it worked, the computer turned on fine but the screen was blue with "hdmi no signal." i've tried everything that doesn't require buying spare parts, any answer is appreciated!
Answers: 1
question
Computers and Technology, 23.06.2019 04:31
Q13 what function does a security certificate perform? a. creates user accounts b. scrambles data c. identifies users d. creates password policies e. provides file access
Answers: 1
question
Computers and Technology, 23.06.2019 16:30
Monica and her team have implemented is successfully in an organization. what factor leads to successful is implementation? good between different departments in an organization leads to successful is implementation.
Answers: 1
You know the right answer?
Create a SavingsAccount class. Use a static data member annualInterestRate to store the annual inte...
Questions
question
Mathematics, 21.04.2020 22:36
question
World Languages, 21.04.2020 22:37
question
Geography, 21.04.2020 22:37
question
Mathematics, 21.04.2020 22:37
question
Mathematics, 21.04.2020 22:37
Questions on the website: 13722360