000
21.04.2006, 11:42 Uhr
~herrera
Gast
|
i have a very hard question and i need to solve it for monday there is 20 mark for who solve this question plz help i need to pass in this subject i am studying CE and this is first semester 4 me plz help me
the Q is:
A company pays its employees as manager (who receive a fixed weekly salary), hourly workers (who receive a fixed hourly wage for up to the first 40 hours thet work and "time-and-a-half" – 1.5 times their hourly wage – for over time hours worked ), commission workers (who receive $250 plus 5.7% of their gross weekly sales), or pieceworkers (who receive a fixed amount of money per item for each pf the items they produce – each pieceworker in this company works 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 pay according to that employee's pay code. Within the switch, prompt the user (i.e. the payroll clerk) to enter the appropriate facts your program needs to calculate each employee's pay according to that employee's pay code. |