Question: a ) Create a project named firstnameA 1 _ 1 1 7 5 _ 0 0 2 that contains the classes given below.b ) Create

a) Create a project named firstnameA1_1175_002 that contains the classes given below.b) Create a class named Employee that containsa. instance fields/properties for employee name, employee number, departmentand hourly pay rate.b. one default and one parameterized constructor.c. a method CalculateGrossPay which accepts the number of hours worked andcalculates employee gross pay.Gross pay = hours worked * hourly pay rate.d. a ToString() method to display information about an employee.c) Create another class named CommissionedEmployee that containsa. Instance fields/properties for employee name, employee number, weekly salesand commission rate.b. one default and one parameterized constructor.c. a method CalculateGrossPay to calculate gross pay.Gross pay = weekly sales * commission rate.d. A method CalculateFedTax to calculate the federal tax deduction. The federaltax rate is 12%.Federal tax paid = gross pay * federal tax rate.2e. A method CalculateSocSecDed to calculate social security deduction. Thesocial security tax rate is 5%.Social security deduction = gross pay * social security tax rate.f. A method CalculateTakeHomePay to calculate take-home pay.Take-home pay = gross pay - deductions.g. a ToString() method to display information of a commissioned employee.d) Create another class named SalariedEmployee that containsa. Instance fields/properties for employee name, employee number, monthlysalary and overtime hours.b. one default and one parameterized constructor.c. A method CalculateSalary to calculate total salary including overtime amount.A salaried employee is paid $45 for each extra hour worked.salary = monthly salary +(overtime hours *45)d. a ToString() method to display information of a commissioned employee.e) Create another class named EmployeeApp with the main() method. This class shouldcreate at least 3 objects one for the Employee type, 1 for the Commissioned Employeetype and 1 for the SalariedEmployee type. The app allows the user to input the requiredinformation as shown in sample input/output. Based on the inputted value instantiatean object of the particular class and display information about the object as shown insample input/output.Sample input/outputThis application performs computations for three types of objects.Three (3) tests will be performed, 1 for employee, 1 for commissioned employee and 1 forsalaried employeesUnique characteristics of each employee will be displayed.Press any key when you are ready to beginEnter information about an employeeEnter employee name : DavidEnter employee number : 4545Enter hourly rate : 23.5Enter department : MARK# of hours worked : 35Displaying employee informationEmployee name: David

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!