Task Performance A Simple Payroll Program Computer Programming 2 Answer

Veröffentlicht am: 17 Dezember 2022
auf dem Kanal: Games with Brian
5,140
53

Answer for this laboratory exercise
https://elms.sti.edu/files/3056044/04_Task...

You can see the answer code here: https://github.com/Brian-Serrano?tab=repos...

Transcribed Text
Task Performance
A Simple Payroll Program
Objective:
At the end of the activity, the students should be able to:
▪ 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, FullTimeEmployee,
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).
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 the entire month separated by a space. Then, display his name and wage.
Employee
name: String
setName(): void
getName(): String
FullTimeEmployee
monthlySalary: double
setMonthlySalary(): void
getMonthlySalary(): double
Note: You can add variables and methods if needed. Just make sure that all the variables and methods in
the diagram are properly used.
PartTimeEmployee
ratePerHour: double
hoursWorked: int
wage: double
setWage(): void
getWage(): double
IT1712
04 Task Performance 1 *Property of STI
Page 2 of 2
Sample Output:
GRADING RUBRIC (100 points):
Criterion Description Max Points
Correctness The code produces the expected result. 40
Logic The code meets the specifications of the problem. 40
Efficiency The code is concise without sacrificing correctness and logic. 10
Syntax The code adheres to the rules of the programming language. 10


Auf dieser Seite können Sie das Online-Video Task Performance A Simple Payroll Program Computer Programming 2 Answer mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Games with Brian 17 Dezember 2022 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 5,140 Mal angesehen und es wurde von 53 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!