Question: Please write the code in C and please write proper comments so I can practise the code and can easily understand it. Please also write
Please write the code in C and please write proper comments so I can practise the code and can easily understand it. Please also write the general requirements at the start.



General requirement
- Following comments must be the first lines of your source code
/* -----------------------------------------------
Submitted By:
Homework Number:
Credit to:
Submitted On:
By submitting this program with my name,
I affirm that the creation and modification
of this program is primarily my own work.
------------------------------------------------ */
Assignment objectives Conditional decision making if-else Relational operators - Logical operators Write a program that calculates the weekly wages of employees in a company. There are salary and hourly employees. Following are the company policies 1. 2. 3. Salary employees only get over time if they work more than 50 hours a week. Over time pay for salary employees is 140% of their hourly wages Salary employee's hourly wages cannot be less than $20.00 or more than $30.00 per hour 4. 5. 6. 7. Hourly employees get overtime if they work more than 40 hours a week Over time pay for hourly employees is 150% of their hourly wages Hourly employee's hourly wages cannot be less than $8.00 or more than $18.00 per hour No employee is allowed to work more than 80 hours Your program must ask the user the followings 1. Hourly or salary employee (ask the user to input '1' for salary and '2 for hourly 2. Hourly wage 3. How many hours worked that week Paragraph Styles Your program must check for invalid inputs such as negative number of hours or wages that are not within the specified wages above or entering a number other than 1 or 2 for type of employee (hourly or salary) Your program must calculate the total wages of the user for that week and print the result. One possible example of the output: Hourly Employee Hourly wage: $12.50 Total hours worked: 45 Over time hours: 5 Total pay for this week: S593.75 Requirements See program description General requi 1- Following comments must be the first lines of your source code Submitted By:
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
