Question: procedure. 1. Create four (4) Java classes . Name them RunEmployee . FullTimeEmployee. PartTimeEnployee. the Runemployee class shall contain the main method and will be
procedure. 1. Create four (4) Java classes . Name them RunEmployee . FullTimeEmployee. PartTimeEnployee. the Runemployee class shall contain the main method and will be used to execute the program. 2. Write a simple payroll program that will display employee's information. Refer to the UML Class Diagram for the names of the variable and method. This should be the sequence of the program upon execution. a. Ask the user to input the name of the employee b Prompt the user to select between full time and part time by pressing either F( full time) Or P (Part time) c.If F is pressed,ask the user to type his monthly salary. Then display his name and monthly salary If P is pressed ask the user to type his rate (pay) per hour and the number of hours he worked for entire month separated by a space Then display his name and wage .
create a program taht exhibits inheritance and polymorphism employee -name: string + setName(): void + getName(): String FulltimeEpmloyee - monthlySalary:double +getMonthlySalary(): void + getMonthlySalary(): double PartTimeEmployee.- ratePerhour:double -hoursWorked:int -wage:double +setWage(): void. +getWage(): double
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
