Add three (3) Java Methods. Name them Employee, FullTimeEmploye e, and
PartTimeEmploye e.
Write a simple payroll program that will display employee’s information. Refer to the Sample
Output below. This should be the sequence of the program upon execution:
a. Ask the user to input the name of the employee. Use the employee method here.
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/her monthly salary. Then, display his/her name and
monthly salary.
If P is pressed, ask the user to type his/her rate (pay) per hour and the number of hours s/he
worked for the entire month separated by a space. Then, display his/her name and wage.
d. Use your own variable declaration and make use of local and instance variable. Also refer
to the proper way of declaring methods and make sure to utilize all created methods into
their corresponding function
PartTimeEmploye e.
Write a simple payroll program that will display employee’s information. Refer to the Sample
Output below. This should be the sequence of the program upon execution:
a. Ask the user to input the name of the employee. Use the employee method here.
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/her monthly salary. Then, display his/her name and
monthly salary.
If P is pressed, ask the user to type his/her rate (pay) per hour and the number of hours s/he
worked for the entire month separated by a space. Then, display his/her name and wage.
d. Use your own variable declaration and make use of local and instance variable. Also refer
to the proper way of declaring methods and make sure to utilize all created methods into
their corresponding function
Comment