Answered step by step
Verified Expert Solution
Link Copied!

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 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
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing

Authors: David M. Kroenke

12th Edition International Edition

1292023422, 978-1292023427

More Books

Students also viewed these Databases questions

Question

What is a red herring?

Answered: 1 week ago

Question

Describe Table Structures in RDMSs.

Answered: 1 week ago