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.
Comments
Leave a comment