Part 1 Create a SavingsAccount class. Use a static data member to contain the annualInterestRate for each of the savers. Each member of the class contains a private data member savingsBalance incicating 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 driver program to test class SavingsAccount. Instantiate two different savingsAccount objects, saver1 and saver2 with balances of $2000 AND $3000, respectively. Set AnnualInterestEate to 3%, then calculate the monthly interest and print the new balances for each of the savers. Then set the annualInterestRate to 4% and calculate the next month's interest and print the new balances for each of the savers. Part 2 Design a base class named Employee. The class should keep the following information in the number variables. Employee name Social Security Number, in the format xxxx-xx-xxxx, where each x is a digit within the range 0-9. Employee number, in the format xxx-L, where x is a digit within the range 0-9, and L is a letter within the range A-M. Hire date Add a constructor, destructor, and other appropriate member functions to the class. The constructor should dynamically allocate enough memory to hold the employee's name, and the destructor should free the unused memory. Next, design a class named EmployeePay. This class should be derived from the Employee class. It should keep the following information in number variables. Annual pay, Monthly pay, Dependents(the number of dependents the employee claims) DEmonstrate the class in a program that asks user to enter sample data, and then display it on the screen. Input validation: Only accept valid social security number(with no alphabetic character) and valid employee enumbers. Do not accept negative value for annual pay or the number of dependents.
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request.
3) Exclusive and complete copyrights to all work purchased. (No GPL, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site).
Windows XP Microsoft Visual C++ 6.0