You will be writing a program that is part of a payroll


You will be writing a program that is part of a payroll system for a very small store. Given the following description, write a program that does the tasks listed. Assume that all workers are paid by the hour.

1.Define an enumerated type job_t to represent four different titles: manager, stocker, clerk, and bagger. 
2.Define a structured type worker_t to represent the name, title, payrate , and hours for any worker. The title should be of type job_t defined previously. 
3.In main() 
Declare an array object to hold the data for 10 workers. 
Print program titles and report headings, then call the input function described next to fill in the data array 
Write a loop that processes pay for all the workers in the array. Within the loop, use hours and the worker's pay rate to calculate the employee's weekly pay. Print the worker's name and pay, and keep sums of the total wages earned by the employees in each of the four categories. 
At the end of the loop, print the total pay for each category of workers and the grand total for all workers. 
4.In the input function, write a loop that read the data for all 10 workers. An array to hold these data should be a parameter to the function. Within this loop, read a worker's name, pay rate, and hours worked and store them in the current slot of the array. Then present a menu of job types and store the response in the record.

Request for Solution File

Ask an Expert for Answer!!
Programming Languages: You will be writing a program that is part of a payroll
Reference No:- TGS0137649

Expected delivery within 24 Hours