Question: Write a C program to consider a boutique company with ten employees working in different units. Every month in the company, each employee receives an

Write a C program to consider a boutique company with ten employees working in
different units. Every month in the company, each employee receives an extra payment for more
than 8 hours for extra work. If less than or equal to 8 hours are worked, no extra payment is given.
The monthly salaries of the employees are given in the table below.
Employee ID Salary:
115000
220000
332000
417500
525000
640000
724750
812000
96000
1014500
Write a program in which employees' salaries are kept in a one-dimensional array
according to the table. The extra payment amount for each employee should be taken as input from
the user and kept in another one-dimensional array. Likewise, extra working hours should be taken
as input from the user and checked.
Write a function called calculateSalary() that receives the array of salaries. The function
should also take extra working hours and extra payments for calculation. Calculate the and store
the new values in array of salaries.
Then, in main program print the total monthly salary for each employee on the screen and
the appropriate message if the overtime is less than 8 hours.
Consider the sample run given below.
Enter overtime and overtine pay for each employee recieves per hour:
Employee 1:2100
Enployee 2 : 5150
Enployee 3 : 8100
Employee 4:10200
Enployee 5:3120
Employee 6 : 5150
Employee 7:9100
Employee 8 : 10150
Employee 9:250
Enployee 10:5100
No extra fee will be paid. Salary of 1. eaployee is 15000.00
No extra fee will be paid. Salary of 2. employee is 20000.00
No extra fee will be paid. Salary of 3. eaployee is 32000.00
Salary of 4. employee is 19500.00
No extra fee will be paid. Salary of 5. employee is 25000.00
No extra fee will be paid. Salary of 6. eaployee is 40000.00
Salary of 7. employee is 25650.00
Salary of 8. employee is 13500.00
No extra fee will be paid. Salary of 9. eaployee is 6000.00
No extra fee will be paid. Salary of 10. employee is 14500.00
 Write a C program to consider a boutique company with ten

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!