Question: Can you help me write in C# please A company has three employee categories: salaried, wage and part-time. All employees have an employee ID number,

Can you help me write in C# please

A company has three employee categories: salaried, wage and part-time. All employees have an employee ID number, name and SIN. Salaried employees have ID numbers starting with 04, whereas wage employees IDs start with 57 and part-time employees IDs start with 89. All employees are paid weekly and payment for each employee category is calculated as follows:

Salaried employees are paid a set salary each week.

Wage employees pay is calculated using hourly rate * work hours with overtime paid at time and a half for any hours worked over 40 in one week.

Part-time employees pay is calculated based on hourly rate * work hours with no overtime paid.

Instructions

Create the classes as shown in the diagram on the following page.

Place the employees.txt data file in the res folder.

Create an inheritance tree whereby Salaried, PartTime and Wages inherit from Employee.

Create an application with the following methods:

Fill a list with objects based on the supplied data file.

Calculate and return the average weekly pay for all employees.

Calculate and return the highest weekly pay for the wage employees, including the name of the employee.

Calculate and return the lowest salary for the salaried employees, including the name of the employee.

What percentage of the companys employees fall into each employee category?

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!