How do you start of this static data member program? having trouble (how is the code written? )?
-
Create a savingsAccount class. Use a static data member to contain the annualInterestRate for each of the saving account. Each member of the class contains a private data member savingsBalnace indicating the amount the saver currently has on deposit. Provide a calculateMonthlyInterest member function 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 main function to test class with balances of $2,000.00 and $3,000.00, respectively. Set annualInterestRate to 3%, then calculate the monthly interest and print the new balances for each of the savers. The set the annualInterestRate to 4% and repeats the calclulation for each of the savers.
-
Answer:
Do so via starting up the function.... Good luck!
unique at Yahoo! Answers Visit the source
Related Q & A:
- How to link library to QT static?Best solution by Stack Overflow
- How do I audit a policy document? What areas should I look at and how should it be written?Best solution by Yahoo! Answers
- How Can I get My SSS Static Information?Best solution by Yahoo! Answers
- How to pass driving written test in Washington?Best solution by Yahoo! Answers
- Does anyone have a good data recovery program?Best solution by ufsexplorer.com
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.