Create four (4) Java classes. Name them RunEmployee, Employee, FullTimeEmployee, PartTimeEmployee. The RunEmployee class shall contain the main method and will be used to execute the 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: Ask the user to input the name of the Prompt the user to select between full time and part time by pressing either F (full time) or P (part time). 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 the entire month separated by a space. Then, display his name and wage.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
  1. Create four (4) Java classes. Name them RunEmployee, Employee, FullTimeEmployee, PartTimeEmployee. The RunEmployee class shall contain the main method and will be used to execute the
  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:
    1. Ask the user to input the name of the
    2. Prompt the user to select between full time and part time by pressing either F (full time) or P (part time).
    3. 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 the entire month separated by a space. Then, display his name and wage.

 

Table Tools
04 Task_Performance_1(19)-converted [Compatibility Mode] - Word (Product Activation Failed)
困
File
Home
Insert
Design
Layout
References
Mailings
Review
View
Design
Layout
O Tell me what you want to do.
& Share
O Find -
X Cut
E Copy
Arial
11
A A
Aa -
处 T
AaBbCcD AaBb AaBbCcD AaBbCcC AABBCCC AaBbCcC AaBbCcC AaBbCcD AaB AaBbCcD AaBbCcDd
aac Replace
Paste
V Format Painter
BIU- abe X, x A
ary - A
I Body Text 1 Heading 1 T Heading 2 1 List Para. 1 No Spac.
1 Normal
1 Table Pa. Heading 3
Title
Subtitle
Subtle Em...
A Select -
Clipboard
Font
Paragraph
Styles
Editing
9. 1. 8.1. 7:16. 1: 5. 1. 4.L:3.1· 2 1·1· :.1:1: 2. 1. 3. 4: 1: 5. L:6.1:7.I
8. 1. 9. I
10.111· |
Create a program that exhibits inheritance and polymorphism.
Software Requirements:
Latest version of NetBeans IDE
Java Development Kit (JDK) 8
Procedure:
1.
Create four (4) Java classes. Name them RunEmployee. Employee, FullTimeEmplovee.
PartTimeEmployee. 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).
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 the entire month separated by a space. Then, display his name and wage.
Employee
- name: String
+ setName(): void
+ getName(): String
FullTimeEmployee
- ponthlySalary double
+ setMonthluSalary(): void
+ getMonthlySalary(): double
Part TimeEmployee
ratePerHour double
- hoursWorked: int
wage: double
+ setWage(): void
+ getWage(): double
Page 1 of 2
305 words
E English (United States)
100%
10:10 am
O Type here to search
O 4) ENG
IMI
27/03/2022
32°C
· 17. 1 6. 1 . . · 14 · 1 13· 1 : 12· 1 ·11· | ·10 · 1 · 9 · 1 ·
Transcribed Image Text:Table Tools 04 Task_Performance_1(19)-converted [Compatibility Mode] - Word (Product Activation Failed) 困 File Home Insert Design Layout References Mailings Review View Design Layout O Tell me what you want to do. & Share O Find - X Cut E Copy Arial 11 A A Aa - 处 T AaBbCcD AaBb AaBbCcD AaBbCcC AABBCCC AaBbCcC AaBbCcC AaBbCcD AaB AaBbCcD AaBbCcDd aac Replace Paste V Format Painter BIU- abe X, x A ary - A I Body Text 1 Heading 1 T Heading 2 1 List Para. 1 No Spac. 1 Normal 1 Table Pa. Heading 3 Title Subtitle Subtle Em... A Select - Clipboard Font Paragraph Styles Editing 9. 1. 8.1. 7:16. 1: 5. 1. 4.L:3.1· 2 1·1· :.1:1: 2. 1. 3. 4: 1: 5. L:6.1:7.I 8. 1. 9. I 10.111· | Create a program that exhibits inheritance and polymorphism. Software Requirements: Latest version of NetBeans IDE Java Development Kit (JDK) 8 Procedure: 1. Create four (4) Java classes. Name them RunEmployee. Employee, FullTimeEmplovee. PartTimeEmployee. 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). 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 the entire month separated by a space. Then, display his name and wage. Employee - name: String + setName(): void + getName(): String FullTimeEmployee - ponthlySalary double + setMonthluSalary(): void + getMonthlySalary(): double Part TimeEmployee ratePerHour double - hoursWorked: int wage: double + setWage(): void + getWage(): double Page 1 of 2 305 words E English (United States) 100% 10:10 am O Type here to search O 4) ENG IMI 27/03/2022 32°C · 17. 1 6. 1 . . · 14 · 1 13· 1 : 12· 1 ·11· | ·10 · 1 · 9 · 1 ·
Table Tools
04 Task_Performance_1(19)-converted [Compatibility Mode] - Word (Product Activation Failed)
困
File
Home
Insert
Design
Layout
References
Mailings
Review
View
Design
Layout
O Tell me what you want to do.
& Share
O Find -
X Cut
E Copy
Arial
11
A A
Aa -
处 T
AaBbCcD AaBb AaBbCcD AaBbCcC AABBCCC AaBbCcC AaBbCcC AaBbCcD AaB AaBbCcD AaBbCcDd
aac Replace
Paste
V Format Painter
BIU- abe X, x A
ary - A
I Body Text 1 Heading 1 T Heading 2 1 List Para. 1 No Spac.
1 Normal
1 Table Pa. Heading 3
Title
Subtitle
Subtle Em...
A Select -
Clipboard
Font
Paragraph
Styles
Editing
9. 1. 8.1. 7:16. 1: 5. 1. 4.L:3.1· 2 1·1· :.1:1: 2. 1. 3. 4: 1: 5. L:6.1:7.I
8. 1. 9. I
10.111· |
Create a program that exhibits inheritance and polymorphism.
Software Requirements:
Latest version of NetBeans IDE
Java Development Kit (JDK) 8
Procedure:
1.
Create four (4) Java classes. Name them RunEmployee. Employee, FullTimeEmplovee.
PartTimeEmployee. 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).
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 the entire month separated by a space. Then, display his name and wage.
Employee
- name: String
+ setName(): void
+ getName(): String
FullTimeEmployee
- ponthlySalary double
+ setMonthluSalary(): void
+ getMonthlySalary(): double
Part TimeEmployee
ratePerHour double
- hoursWorked: int
wage: double
+ setWage(): void
+ getWage(): double
Page 1 of 2
305 words
E English (United States)
100%
10:10 am
O Type here to search
O 4) ENG
IMI
27/03/2022
32°C
· 17. 1 6. 1 . . · 14 · 1 13· 1 : 12· 1 ·11· | ·10 · 1 · 9 · 1 ·
Transcribed Image Text:Table Tools 04 Task_Performance_1(19)-converted [Compatibility Mode] - Word (Product Activation Failed) 困 File Home Insert Design Layout References Mailings Review View Design Layout O Tell me what you want to do. & Share O Find - X Cut E Copy Arial 11 A A Aa - 处 T AaBbCcD AaBb AaBbCcD AaBbCcC AABBCCC AaBbCcC AaBbCcC AaBbCcD AaB AaBbCcD AaBbCcDd aac Replace Paste V Format Painter BIU- abe X, x A ary - A I Body Text 1 Heading 1 T Heading 2 1 List Para. 1 No Spac. 1 Normal 1 Table Pa. Heading 3 Title Subtitle Subtle Em... A Select - Clipboard Font Paragraph Styles Editing 9. 1. 8.1. 7:16. 1: 5. 1. 4.L:3.1· 2 1·1· :.1:1: 2. 1. 3. 4: 1: 5. L:6.1:7.I 8. 1. 9. I 10.111· | Create a program that exhibits inheritance and polymorphism. Software Requirements: Latest version of NetBeans IDE Java Development Kit (JDK) 8 Procedure: 1. Create four (4) Java classes. Name them RunEmployee. Employee, FullTimeEmplovee. PartTimeEmployee. 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). 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 the entire month separated by a space. Then, display his name and wage. Employee - name: String + setName(): void + getName(): String FullTimeEmployee - ponthlySalary double + setMonthluSalary(): void + getMonthlySalary(): double Part TimeEmployee ratePerHour double - hoursWorked: int wage: double + setWage(): void + getWage(): double Page 1 of 2 305 words E English (United States) 100% 10:10 am O Type here to search O 4) ENG IMI 27/03/2022 32°C · 17. 1 6. 1 . . · 14 · 1 13· 1 : 12· 1 ·11· | ·10 · 1 · 9 · 1 ·
Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY