Question: After receiving a wrong answer...here we go again Sorry, it wouldn't allow me to edit my question before, but the programming language is c++ Description

After receiving a wrong answer...here we go again

After receiving a wrong answer...here we go again Sorry, it wouldn't allow

me to edit my question before, but the programming language is c++

Description A company is planning to hire a number of temporary workers

who are paid hourly and you are given a data file that

contains the last name of the employees, the amount of hours worked

by the employee for the week, and their hourly wage. You are

asked to write a program that computes each employee's weekly pay and

Sorry, it wouldn't allow me to edit my question before, but the programming language is c++

Description A company is planning to hire a number of temporary workers who are paid hourly and you are given a data file that contains the last name of the employees, the amount of hours worked by the employee for the week, and their hourly wage. You are asked to write a program that computes each employee's weekly pay and the average salary of all the workers. The program then outputs the weekly pay of each employee, the average weekly pay, and the names of all the employees whose pay is greater than or equal to the average pay (Sorted by the last name, you will also need to format the name so the first letter is capital and the rest are lower case, using the format function). If the number of hours worked in a week is more than 40 hours, then the pay rate for the hours over 40 is 1.5 times the regular hourly rate for each hour above 40. In this assignment, instead of using parallel arrays, you will use an array of structs to hold the employees' names, hours worked, hourly pay, and amount earned, the definition of the struct can be seen below struct employeeType string name; double hours; double hourlyPay; double amountEarned; Where string name holds the name of the employee, double hours will hold the hours the employee has worked, double hourlyPay will hold the hourly pay for the employee, and double amountEarned will be the total weekly wage. So unlike the last assignment, you won't have two parallel arrays, you will have an array of structs and each element of the array will hold all the information for each employee. You will write the following functions

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!