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.

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

General requirement

  1. 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: Homework Number: Submitted On: By submitting this program with my name, I affirm that the creation and modification of this program is primarily my own work. 2- 3- 4- 5- Next few line of your source code must be comments describing what this program is supposed to do. The first output (display) must be your name The source code file must include comments documenting the design. Indentation and spacing should be used to make the program readable

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!