Write a program that calculates the performance-based salary of customer support representatives (CSRs) in an organization: 1.
Question:
Write a program that calculates the 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. username: 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. complaints resolved: number of complaints successfully resolved by each CSR, input at run time
5. pay rate: an array of seven to hold each employee s hourly pay rate, where the pay rate is calculated as follows:
Payette = $25 + 25*(complaints resolved by each CSR/total complaints resolved)
6. wages: an array hold each employee’s wages= hours * payRate
The program should relate the data in each array through the subscripts. For example, the number
in element 0 of the hour's 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 pay rate and gross wages for that CSR and store them in the Payette 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 a number of complaints, resolved, the number of hours worked.
Note: Ensure all necessary input validation, for example, hours, complaints resolved cannot be negative
numbers.
An Introduction to the Mathematics of Financial Derivatives
ISBN: 978-0123846822
3rd edition
Authors: Ali Hirsa, Salih N. Neftci