[Solved]Write Console Application Computes Displays Total Payroll Hourly Employees Company Eaclh E Q37245209
USING VISUAL STUDIO C PROGRAMMING

![Design Requirements For this problem you must define the following struct type typedef struct employee char name [ 100]; char](https://media.cheggcdn.com/media%2Ff89%2Ff895a080-6acc-4922-9714-66336f606d12%2FphpdMWGez.png)
Write a console application that computes and displays the total payroll for hourly employees at a company. Eaclh employee is represented by a record in a file called payroll.txt. A record consists of the following Employee name (last, first) Employee title (B or M) Hours worked Rate per hour You must read in all of the records from the file. These records are representative of a two week pay period, where the expected hours worked is -80 hours. You may assume the file does not consist of more than 200 records. You will need to write an algorithm that traverses through the records and determines payment for each employee based on the following Basic Employee (title B) Payment – hours worked * rate per hour (excluding overtime) Overtime1.5 * rate per hour (for each hour over 40 hours worked per week) tal payment payment+ overtime Manager (title M) Payment hours worked * rate per hour (excluding overtime) Overtime1.8 * rate per hour (for each hour over 40 hours worked per week) Total payment payment+overtime You will need to write the following information to another file called paid.txit: Total payroll (sum of all employees’ total payments) Average total payment Max total payment Min total payment Design Requirements For this problem you must define the following struct type typedef struct employee char name [ 100]; char title; double hours_worked; // total number of hours worked double payrate double payment // employee’s name last, first // title B’ or M // pay rate per hour // total payment for the pay period you will compute! Employee; You must also define an array of Employees that contains a maximum of 200 employee profiles. For example, Employee payroll[200]; // the input file may not exceed 200 employee records You must also complete the following Open pcqyroll.txt for mode read Read all records in payroll.tct and store them into the array of Employees Compute the payment for each employee based on the title, number of hours worked, and pay rate – store the payment back into the Employee in the array Compute the total or sum of payments for all employees Compute the average payment per employee Compute the maximum payment Compute the minimum payment Open paid.tct for mode write Write the total, average, maximum, and minimum payments to paid.tct Close payroll.txt and paid.tct Sample payroll.txt File: Smith, Susan 80.0 17.76 Sanders, Fred 87.25 23.45 Kerr, Heidi 80.0 47.86 Russo, Rick 83.75 12.15 Show transcribed image text Write a console application that computes and displays the total payroll for hourly employees at a company. Eaclh employee is represented by a record in a file called payroll.txt. A record consists of the following Employee name (last, first) Employee title (B or M) Hours worked Rate per hour You must read in all of the records from the file. These records are representative of a two week pay period, where the expected hours worked is -80 hours. You may assume the file does not consist of more than 200 records. You will need to write an algorithm that traverses through the records and determines payment for each employee based on the following Basic Employee (title B) Payment – hours worked * rate per hour (excluding overtime) Overtime1.5 * rate per hour (for each hour over 40 hours worked per week) tal payment payment+ overtime Manager (title M) Payment hours worked * rate per hour (excluding overtime) Overtime1.8 * rate per hour (for each hour over 40 hours worked per week) Total payment payment+overtime You will need to write the following information to another file called paid.txit: Total payroll (sum of all employees’ total payments) Average total payment Max total payment Min total payment
Design Requirements For this problem you must define the following struct type typedef struct employee char name [ 100]; char title; double hours_worked; // total number of hours worked double payrate double payment // employee’s name last, first // title B’ or M // pay rate per hour // total payment for the pay period you will compute! Employee; You must also define an array of Employees that contains a maximum of 200 employee profiles. For example, Employee payroll[200]; // the input file may not exceed 200 employee records You must also complete the following Open pcqyroll.txt for mode read Read all records in payroll.tct and store them into the array of Employees Compute the payment for each employee based on the title, number of hours worked, and pay rate – store the payment back into the Employee in the array Compute the total or sum of payments for all employees Compute the average payment per employee Compute the maximum payment Compute the minimum payment Open paid.tct for mode write Write the total, average, maximum, and minimum payments to paid.tct Close payroll.txt and paid.tct Sample payroll.txt File: Smith, Susan 80.0 17.76 Sanders, Fred 87.25 23.45 Kerr, Heidi 80.0 47.86 Russo, Rick 83.75 12.15
Expert Answer
Answer to Write a console application that computes and displays the total payroll for hourly employees at a company. Eaclh employ… . . .
OR

