| |
|
|
In the name of GOD
Deitel Exercise : 2.56
A company pays its employees as managers (who recieve a fixed weekly salary), hourly workers (who recieve a fxed hourly wages for up to the first 40 hours they work and "time-ane-a-half" - 1.5times their hourly wages - fo overtime hours worked), cimmission workers (who recieve 250$ plus 5.7% of their gross weekly sales), or pieceworkers (who recieve a fixed amount of money per item for each of he items they produce - each pieceworker in this company on only one type of item). 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: managers have pay code 1, hourly workers have code 2, commission workers have code 3 and pieceworkers have code 4. Use a switch to compute each employee's paycode. Within the switch, prompt the user (i.e., the payroll clerk) to enter the appropriate facts your program needs to calculate each employee's ay according to that employee's paycode.
|
|
|
 |