Posts

Showing posts from September, 2022

A mobile manufacturing company pays its employees as follows: - C Programming

A mobile manufacturing company pays its employees as follows:   Team leaders (fixed fortnightly salary)   Sales workers ($500 plus 6.5% of their gross fortnightly sales)   Pieceworkers (fixed amount of money per item for each of the items they produce, each piece worker in this company works on only 1 type of item)   Hourly workers (fixed hourly wage for up to the first 60 hours they work and "time-and a-half" i.e., 1.5 times their hourly wage, for overtime hours worked)   Write a program to compute the weekly pay for each employee. You do not know the number of employees in advance. Each type of employee has its own pay code:   Code 1: Team leaders   Code 2: Sales workers   Code 3: Pieceworkers   Code 4: Hourly workers  There will be an undetermined number of entries into the payroll. Use a switch to c...