LANGUAGE C++ (by using for loops conditions and arrays only ) Problem 3: Employee performance reporting [20
Fantastic news! We've Found the answer you've been seeking!
Question:
LANGUAGE C++ (by using for loops conditions and arrays only
)
Transcribed Image Text:
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. 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.
Expert Answer:
Related Book For
Process Dynamics And Control
ISBN: 978-0471000778
2nd Edition
Authors: Dale E. Seborg, Thomas F. Edgar, Duncan A. Mellich
Posted Date:
Students also viewed these programming questions
-
A well-known movie store located in Amman, aimed to organize the movie selling process on monthly basis. At the end your program should do some analysis and generate some reports. Your task is to...
-
Using the control loops in Table E.2.7 and E.2.8 with, the full composition model created in Exercise 24.1, evaluate the use of ratio control in Loop 2 of Table 24.4. In particular, indicate why...
-
Complete the following tasks for the trial program. 1. Display your full name. 2. Display your MMU student ID. 3. Allow user input with four decimal digits in a range of 0000 to 2500. The digits...
-
Determine the beam column shown below is capable of safely carrying the applied loads. Given loads were determined by using LRFD provisions and bending moment diagrams are obtained from second order...
-
Presented below are variable costing income statements for Diggs Company and Doggs Company. They are in the same industry, with the same net incomes, but different cost structures. Compute the...
-
A T-shirt company has fixed costs of $25,000 per year. Each T-shirt costs $8.00 to produce and sells for $12.50. How many T-shirts must the company produce and sell each year in order to make a...
-
As a gambling facility, MGM Desert Inn, Inc., regularly holds and executes negotiable instruments. During a period of two months, patron William E. Shack Jr. entered MGM and delivered eight checks to...
-
Impairment Roland Company uses special strapping equipment in its packaging business. The equipment was purchased in January 2009 for $10,000,000 and had an estimated useful life of 8 years with no...
-
What is the policy implication of a research question focusing on vaccinating everyone in the general population? Solve How many QALYs will $1,000 worth of measles vaccine purchase in this village?...
-
You send daily emails about a variety of topics for a shoe store. Your open rates are low, but sale announcements perform best. Which two marketing actions would most likely increase open rates?...
-
Explain briefly what is meant by 'audit sampling and In relation to audit sampling, explain briefly what is meant by; (i) Sampling risk (ii) Stratification (iii) Precision limits (iv) Tolerable error
-
Credit that you must repay in equal fixed payments-and is typically secured with collateral-is known as ______________________ credit.
-
Collaboration is everywhere, especially in the healthcare industry. It is important to learn how to work and communicate in a collaborative environment the available resources and articles for...
-
_____ is a particular type of receivable financing wherein the lender takes ownership of a receivable at a discount and then collects against it.
-
What is the role of the init process in regards to process termination? What is the function of the init process?
-
Hearken back to a situation that involved significant decision making and biases among the decision makers and/or team members. How did you or the leads on the project handle the situation? To what...
-
A project has these cash flows PVtot 1,000 CF1 500 at T = 1 year 600 at T = 3 years CF2 Write an algebraic equation to use as a start-point for finding the r of this project.
-
Imagine a sound wave with a frequency of 1.10 kHz propagating with a speed of 330 m/s. Determine the phase difference in radians between any two points on the wave separated by 10.0 cm.
-
A perfectly stirred tank is used to heat a flowing liquid. The dynamics of the system have been determined to be approximately as shown in figure. Where: P is the power applied to the heater Q is the...
-
A pump motor operates by a push button that once actuated, keeps the pump on until the operator pushes a stop button. Also there is an emergency stop if the pump overheats (T> TH). Draw a logic...
-
The liquid feed stream for the gas-liquid separator (or flush drum) shown in Figure consists of a hydrocarbon mixture. Because the pressure in the vessel is significantly lower than the feed...
-
Define human communication.
-
Perceiving your communication as effective while those around you perceive it as ineffective is known as ______________.
-
Visit any of the websites for major social media companies (Facebook, Twitter, LinkedIn, etc.). Under the About Us section, read the company mission statement and goals for the organization. Do you...
Study smarter with the SolutionInn App