Question: Please. Write it in C programing language A medium sized company has two types of employees which are hourly workers and commission workers. Each type

 Please. Write it in C programing language A medium sized company Please. Write it in C programing language

A medium sized company has two types of employees which are hourly workers and commission workers. Each type of employee has its own payment code: Payment Code Employment Type 1 Hourly Worker 2 Commission Worker The hourly worker is paid 50TL per hour for the first 40 hours he/she works and "time-and-a-half" (1.5 times the hourly rate of 50TL) for each of the hours above 40 hours (overtime hours). The commission worker receives 500TL plus 5.5% of their monthly sales. You are asked by the company to develop a program using programming language that can determine the salary for both types of employee. The program must implement TWO(2) functions, namely calculatePayHourlyWorker() and calculatePayCommWorker() to perform the salary calculations for the respective types of employee. Each of the function returns the calculated salary amount. The input for the program is the payment code and the appropriate information needed to calculate each employee's salary based on the payment code (i.e., the user should provide the number of working hours for the hourly works, meanwhile the amount of monthly sale is needed for the commission worker). If the payment code entered is invalid (other than 1 or 2), display an appropriate error message and ask the user to try again. The output is the calculated salary, which must be printed to TWO (2) decimal places. The format of input and output is as follows: Sample RUN (Hourly worker): Enter payment code (1: Hourly Worker, 2: Commission Worker): 1 Enter the number of hours worked: 40 Salary is 2000.00 TL Sample RUN (Commission Worker): Enter payment code (1: Hourly Worker, 2: Commission Worker): 2 Enter the total monthly sales: 10000 Salary is 1050.00 TL Sample RUN (Invalid input): Enter payment code (1: Hourly Worker, 2: Commission Worker): 3 Invalid payment code, Please try again [Note: the bold underlined texts are the input to the program]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!