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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started