Question: Write a complete C program that calculates the promotion of employees in a company. Ask the employee to enter their age, salary, and years of

Write a complete C program that calculates the promotion of employees in a company. Ask the employee to enter their age, salary, and years of service. If:

  • The employee's age is less than 30 and their years of service are less than 3 years, add $200 to their salary.
  • The employee's age is greater than 40 or their years of service are more than 5, add $300 to their salary.
  • Otherwise, add $100 to their salary.

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!