Question: (C#) You have to create two classes. The first class Employee which included: The private variables: first name last name id number (Format: A#####) Wage
(C#) You have to create two classes. The first class Employee which included:
The private variables:
first name
last name
id number (Format: A#####)
Wage
hoursWorked
The hoursWorked variable holds how many total hours the person worked. When the hoursWorked is over 40 hours, it will be considered as over time. Wage holds how much the person makes per hour. After passing the 40 hours, they get 1.5 x the wage for each additional hour worked.
The functions:
Constructors
Properties
GetGrossPay: calculate the gross pay for the employee (Be careful with the over time)
The second class will be EmployeeDemo class with the main function. In the main function, Read the data from the employeeinfo.txt file and save the data in the array of (Employee) objects. In the file, the first number is the total number of employees and each employees information.
After import the data, display a menu for user to choose:
Display all employees
Add New employee
Quit the program (save the information to employeeinfo.txt file)
Display Example:
FirstN LastN ID GrossPay
John Wu A00001 $906.25
Bob Ho A00002 $420
Jenny Pena A00003 $561.88
Sam Sosa A00004 $420
Linda Jordan A00005 $1019.88
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
