Question: LANGUAGE C++ (by using for loops conditions and arrays only ) Problem 3: Employee performance reporting [20 Marks] Write a program that calculates performance based

LANGUAGE C++ (by using for loops conditions and arrays only

Problem 3: Employee performance reporting (20 Marks Write a program that calculates performance based salary of customer supp)

Problem 3: Employee performance reporting [20 Marks] Write a program that calculates performance based salary of customer support representatives (CSRs) in an organization: 1. csrID (Customer support representative ID): an array of seven strings to hold employee identification numbers. The array should be initialized with the following numbers: CSR_01, CSR_02, CSR_03, CSR_04, CSR_05, CSR_06, CSR_07 2. csrName: an array to hold the name of each CSR, input at run time 3. hours: number of hours worked by each CSR, input at run time 4. complaintsResolved: number of complaints successfully resolved by each CSR, input at run time 5. payRate: an array of seven to hold each employees hourly pay rate, where payRate is calculated as following: payRate = $25 + 25*(complaints Resolved by each CSR/total complaints resolved) 6. wages: an array hold each employee's wages wages = hours * payRate The program should relate the data in each array through the subscripts. For example, the number in element 0 of the hours array should be the number of hours worked by the CSR whose identification number is stored in element 0 of the csrID array. The program should do the following: 1. Display each csrID and ask the user to enter names, hours and complaints Resolved. 2. It should then calculate the payRate and gross wages for that CSR and store them in the payRate and wages array, respectively. 3. After the data has been entered for all the CSRs, the program should display each CSR's identification number, name and gross wages. 4. Program should also display options to display the top N CSRS on the basis of different criteria, including: number of complaintsResolved, number of hours worked. Note: Ensure all necessary input validation, for example, hours, complaints Resolved cannot be negative numbers.

Step by Step Solution

3.48 Rating (155 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To solve this problem youll need to implement a C program that handles multiple arrays to store data about Customer Support Representatives CSRs and c... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!