Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Flash XML Applications Use AS2 And AS3 To Create Photo Galleries Menus And Databases

Authors: Joachim Schnier

1st Edition

0240809173, 978-0240809175

Students also viewed these Databases questions

Question

What is DDL?

Answered: 1 week ago