Professional Documents
Culture Documents
Hands-on Activity
Selection
Objectives:
Materials:
Instructions:
3. Click File > New Project > the New Project window appears.
4. In the New Project window, click the Java category and select Java Application project and click the
Next button.
• In the Project Location field, browse and select your folder, then click the Open button.
6. Write a simple payroll program that will display the employee’s information. The program should perform
the following:
• 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 enter his monthly salary. Then display his name and salary.
• If P is pressed, ask the user to type his rate (pay) per hour, the number of hours he worked,
and the numbers of overtime. Then display his name and wage. The computation of overtime
pay is: ℎ𝑜𝑢𝑟𝑠 𝑜𝑓 𝑜𝑣𝑒𝑟𝑡𝑖𝑚𝑒 × (𝑟𝑎𝑡𝑒 𝑝𝑒𝑟 ℎ𝑜𝑢𝑟 × 125%)
Figure 1
Figure 2
GRADING RUBRIC:
CRITERIA PERFORMANCE INDICATORS POINTS
Correctness The code produces the expected result. 30
Logic The code meets the specifications of the problem. 30
Efficiency The code is concise without sacrificing correctness and logic. 20
Syntax The code adheres to the rules of the programming language. 20
Total 100