Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Next Generation Databases NoSQLand Big Data

Authors: Guy Harrison

1st Edition

1484213300, 978-1484213308

More Books

Students also viewed these Databases questions

Question

What are the Five Phases of SDLC? Explain each briefly.

Answered: 1 week ago

Question

How can Change Control Procedures manage Project Creep?

Answered: 1 week ago