Question: In C++ without any syntax errors In this project, you will create a program that will calculate a company's cost of operation. Since you will
In this project, you will create a program that will calculate a company's cost of operation. Since you will be dealing with money, you will need to use a double datatyp hen creating your variables that hold currency amounts. The program will prompt the user for the num you to enter in, one employee at a time, the employee's salary and if they have full benefits or partial benefits. Here are some of the main variables you will need to create for the program: ber of employees that you will be p rocessing. It should then p rompt . numEmployees e empSalary . fBenefits Holds the number of employees to process Holds the salary for a single employee Indicates if the employee is receiving full benefits totalOperatingCost Holds the total cost of operation The above variables should be declared in the main function. Note: there snould be no global variables in this program. When you loop through each employee you should prompt the user for the employees salary and if they are receiving full benefits or only receiving partial benefits (See the example program output below). Once you have these two items, at the bottom of the loop, you will call a function to calculate the cost of operation for that specific employee. The CalcOperating function will have these features: . No return value e You will pass 3 arguments Salary of the employee o If the employee is receiving full benefits o A reference parameter for the total operating cost .Formula for calculating the cost of operation If the employee receives full benefits total operating cost +# Salary * 1.5 otherwise total operating cost +# Salary 125 You should output the total operating cost to the company of all employees. (See the example program output below) Formatting the output: You will need to format the total operating cost with a S and 2 decimal points precision
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
