Question: C + + program Write a program that reads employees' names followed by their working hours. The program should output each employee's name followed by
C program
Write a program that reads employees' names followed by their working hours. The program should
output each employee's name followed by the pay rate and the payment. It should also find and
print the highest pay rate and the name of the employees having the highest pay rate.
Employee data should be stored in a struct variable of type employeeType, which has four
components: employeeFName and employeeLName of type string, workingHours of type int, and
payrate of type double. Suppose that there are employees. Use an array of components of type
employeeType.
Your program must contain at least the following functions:
A function to read the employees' data into the array.
A function to find the highest Pay rate.
A function to print the names of the employees having the highest pay rate.
Your program must output each employee's name in this form: last name followed by a comma,
followed by a space, followed by the first name; the name must be left justified. Followed by the pay
rate and the working hours. Moreover, other than declaring the variables, the function main should
only be a collection of function calls.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
