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 firstnameA that contains the classes given below.b Create a class named Employee that containsa. instance fieldsproperties 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 fieldsproperties 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 Federal tax paid gross pay federal tax ratee A method CalculateSocSecDed to calculate social security deduction. Thesocial security tax rate is Social security deduction gross pay social security tax rate.f A method CalculateTakeHomePay to calculate takehome pay.Takehome pay gross pay deductions.g a ToString method to display information of a commissioned employee.d Create another class named SalariedEmployee that containsa. Instance fieldsproperties 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 $ for each extra hour worked.salary monthly salary overtime hours 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 objects one for the Employee type, for the Commissioned Employeetype and for the SalariedEmployee type. The app allows the user to input the requiredinformation as shown in sample inputoutput Based on the inputted value instantiatean object of the particular class and display information about the object as shown insample inputoutputSample inputoutputThis application performs computations for three types of objects.Three tests will be performed, for employee, for commissioned employee and 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 : Enter hourly rate : Enter department : MARK# of hours worked : Displaying employee informationEmployee name: David
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
