Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 hours for extra work. If less than or equal to hours are worked, no extra payment is given.
The monthly salaries of the employees are given in the table below.
Employee ID Salary:
Write a program in which employees' salaries are kept in a onedimensional array
according to the table. The extra payment amount for each employee should be taken as input from
the user and kept in another onedimensional 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 hours.
Consider the sample run given below.
Enter overtime and overtine pay for each employee recieves per hour:
Employee :
Enployee :
Enployee :
Employee :
Enployee :
Employee :
Employee :
Employee :
Employee :
Enployee :
No extra fee will be paid. Salary of eaployee is
No extra fee will be paid. Salary of employee is
No extra fee will be paid. Salary of eaployee is
Salary of employee is
No extra fee will be paid. Salary of employee is
No extra fee will be paid. Salary of eaployee is
Salary of employee is
Salary of employee is
No extra fee will be paid. Salary of eaployee is
No extra fee will be paid. Salary of employee is
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started