What's the difference between a static data member and a regular data member?

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

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

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.