Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

c++ Diamant Programming Exercise 8-17 main.cp 0 Instructions My Home Courses Instructions ch8 Ex17Data.txt 1 Johnson 60 12.50 2 Aniston 65 13.25 3 Cooper 50

c++ image text in transcribed
image text in transcribed
Diamant Programming Exercise 8-17 main.cp 0 Instructions My Home Courses Instructions ch8 Ex17Data.txt 1 Johnson 60 12.50 2 Aniston 65 13.25 3 Cooper 50 14.50 4 Gupta 70 14.75 5 Blair 55 10.50 6 Clark 40 18.75 7 Kennedy 45 20.50 8 Bronson 6 28.00 9 Sunny 65 18.75 10 Smith 30 9.75 GAGE UNLIMITED Browse Catalog Partner Offers Print Options College Success Career Center RECOMMENDED FOR YOU A company hired 10 temporary workers who are paid hourly and you are given a data file that contains the last name of the employees, the number of hours each ergployee worked in a week, and the hourly pay rate of each employee. 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. If the number of hours worked in a week is more than 40, then the pay rate for the hours over 40 is 1.5 times the regular hourly rate. Save for an Emergency Fund l Give Feedback Use two parallel arrays: a one- dimensional array to store the names of all the employees anda LENGAGEMUDIA Diamant Programming Exercise 8-17 ch8 Ex17Data.txt main.cpp My Home Instructions Courses AGE UNLIMITED 1 Johnson 60 12.50 2 Aniston 65 13.25 3 Cooper 50 14.50 4 Gupta 70 14.75 5 Blair 55 10.50 6 Clark 40 18.75 7 Kennedy 45 20.50 8 Bronson 60 20.ee 9 Sunny 65 18.75 10 Smith 30 9.75 Use two parallel arrays: a one- dimensional array to store the names of all the employees, and a two-dimensional array of 10 rows and 3 columns to store the number of hours an employee worked in a week, the hourly pay rate, and the weekly pay Browse Catalog Partner Offers Print Options College Success Your program must contain at least the following functions: Career Center DMMENDED FOR YOU . a function to read the data from the file into the arrays a function to determine the weekly pay we for an Emergency Fund Help a function to output the names of all the employees whose pay is greater than or equal to the average weekly pay . and a function to output each employee's data I Give Feedback e Grading

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

Step: 3

blur-text-image

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

Students also viewed these Databases questions

Question

What does it mean to isolate the technical core of a business?

Answered: 1 week ago

Question

2. What are the components of IT infrastructure?

Answered: 1 week ago