
November 18th, 2012, 08:05 AM
|
|
Registered User
|
|
Join Date: Nov 2012
Posts: 1
Time spent in forums: 20 m 33 sec
Reputation Power: 0
|
|
|
General - My home work please help
A company pays salary to its employees weekly as follows:
• Managers get fixed salary
• Hourly workers receive fixed hourly wage up to 44 hours and 1.5 times of the rate for overtime over and above 44 hours.
• Commission workers receive fixed salary of US 44,000 plus a commission at the rate of 6% of their gross weekly sales.
• Piece worker receive according to the number of pieces produced each worker only produce one type of piece.
Write a program to compute the weekly salary of the each employee. We do not know the strength of all employees however; each category of employee has got his own pay code.
Manager’s pay code is 1, hourly worker’s pay code 2, commission worker’s pay code 3, and piece worker’s pay code 4. Use switch to compute the salary of each employee code. Within a switch prompt the user to enter the necessary information of the employee whose salary is to be computed.
|