Q2/ Create a Compuny class. Use a static data member to contain the annualPromotionRate for cach of the employee. Each member of the class contains a private data member salaryBalance indicating the...

NoneQ2/ Create a Compuny class. Use a static data member to contain the annualPromotionRate for cach<br>of the employee. Each member of the class contains a private data member salaryBalance<br>indicating the amount the employee currently has as a stipend. Provide<br>calculateMonthlyPromotion member function that calculates the monthly promotion by<br>multiplying the salary by annualPromotionRate divided by 12; this promotion should be added to<br>salaryBalance. Provide a static member function modifyPromotionRate that sets the static<br>annualPromotionRate to a new value. Write a main program to test class Company. Instantiate two<br>different Company objects, employeel and employee 2. with salary of S2000.00 and S3000.00,<br>respectively. Set annualPromotionRate to 3%, then calculate the monthly promotion and print the<br>new salary for cach of the employees. Then set the annualPromotionRate to 4% and calculate the<br>next month's promotion and print the new salary for each of the employees. Using C++<br>

Extracted text: Q2/ Create a Compuny class. Use a static data member to contain the annualPromotionRate for cach of the employee. Each member of the class contains a private data member salaryBalance indicating the amount the employee currently has as a stipend. Provide calculateMonthlyPromotion member function that calculates the monthly promotion by multiplying the salary by annualPromotionRate divided by 12; this promotion should be added to salaryBalance. Provide a static member function modifyPromotionRate that sets the static annualPromotionRate to a new value. Write a main program to test class Company. Instantiate two different Company objects, employeel and employee 2. with salary of S2000.00 and S3000.00, respectively. Set annualPromotionRate to 3%, then calculate the monthly promotion and print the new salary for cach of the employees. Then set the annualPromotionRate to 4% and calculate the next month's promotion and print the new salary for each of the employees. Using C++

Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here