Hi i am new to c programming. I am doing an assignment, but i am not understanding what i am suppose to do. It is due tomorrow. Could some one please show me what to do?
Thanks in advance.
QUESTION
Create a program to calculate the salary of employees of a company. The first input should be the amount of employees within the company follow by each employee’s detail. Your inputs are the employee’s name, department (B – Business, C- Computer), employee code (P – principal, V – Vice principal, T- teacher) and hours work. Each person base salary and over time rate is within the table below. Note; all employees are to work at least 40 hours per month, any additional hours are seen as overtime hours.
Employee Code Base Salary (monthly) Overtime Rate (hourly)
Principal $500,000 Not eligible
Vice-Principal $300,000 Not eligible
Teacher $200,000 $3000
You are required to display the following data: -
(A.) Output each employee’s name and salary before and after 17.5% tax deduction. Your output should be displayed using the format below: -
Name: - Timothy Samuel
Position: - Principal
Department: - Not Applicable
Hours work: - Not Applicable
Overtime Hours: - Not Applicable
_______________________________
Base Salary: - $500,000
Overtime salary:- $0.00
Salary before Tax: - $500,000
Salary after Tax: - $412,500
(B.) At the end of the program output the : -
i. Number of employees in each department.
ii. The teacher with the highest salary after tax
iii. The teacher with the lowest salary after tax.
iv. The average salary of all employees.