Question: Hello dear tutors, I need help solving this exercise in C language. I really can't figure it out.Please help me. NOTE: You must use multiple

Hello dear tutors, I need help solving this exercise in C language.

I really can't figure it out.Please help me.

NOTE: You must use multiple selection structure, specifically switch structure.

1.Writ e a program using selection that calculates the weekly salary of a

Employee, if the company where he works pays its employees for hours worked per week, according to the following considerations:

There are two departments, where their employees are paid the following amounts per hour:

1) Accounting 61.25 pesos p/hour

2) Production 22.45 pesos p/hour

In addition, the company gives its employees a bonus for attendance according to the attendance report of the last year

0 (zero) faults... 185.00 additional pesos

2 misdemeanours............... 90.00 additional pesos

3 faults............... 30.00 additional pesos

More than 3 faults do not receive bonus for attendance

The programme should ask:

The department in which the employee works (1 =accounting or 2 =production), the number of faults he has in the last year worked and hours worked per week.

After requesting this information, the programme will calculate the integrated salary of the

Employee, which shall be obtained as follows:

net_salary= (hours_worked*day_salary)

salary_integrated=

salary_neto+bonus_for_assistance

Finally it will display a report like the following:

Net salary...............:xxxxx.xx

Bonus for attendance.....:xxxxx.xx

Integrated salary.........:xxxxx.xx

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 Programming Questions!