QUIZ 2

 

1.      One large chemical company pays its salespeople on a commission basis. The salespeople receive $200 per week plus 9 percent of their gross slaes for that week. For example, a salespeople who sells $5000 worth of chemicals in a week receives $200 plus 9 percent of $5000, or a total of $650. Develop a complete C program that uses any of the repetitive structures to input each salesperson’s gross sales for last week and calculate and display that salesperson’s earnings.

Enter sales in dollars (-1 to end): 5000

Salary is: $650.00

2.      Develop a complete C program that uses any of the repetitive structures to determine the gross pay for each of several employees. The company pays “straight-time” for the first 40 hours worked by each employee and pays “time-and-a-half” for all hours worked in excess of 40 hours. You are given a list of the employees of the company, the number of hours each employee worked last week and the hourly rate of each employee. Your program should input this information for each employee and should determine and display the employee's gross pay.

Enter hours worked (-1 to end): 39

Enter hourly rate of the worker ($00.00): 10.00

Salary is: $390.00