๐Ÿ”’ Closed GrossPayCalculator

Status
Not open for further replies.
โ€ข Implement decision using one-way, two-way, and multiple selections; and
โ€ข Combine conditions using logical operators.
Materials:
โ–ช NetBeans IDE 8.2
โ–ช Java Development Kit (JDK) 8
Instructions:
1. Create a folder named LastName_FirstName (ex. Diaz_Jess) on your local drive.
2. Launch NetBeans IDE.
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.
5. On the Name and Location page, perform the following:
โ€ข In the Project Name field, type GrossPayCalculator.
โ€ข In the Project Location field, browse and select your folder, then click the Open button.
โ€ข Click the Finish button.
6. Write a simple payroll program that will display the employeeโ€™s information. The program should perform the following:
โ€ข Ask the user to enter the name of the employee.
โ€ข 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 number of overtime. Then display his name and wage. The computation of overtime pay is โ„Ž๐‘œ๐‘ข๐‘Ÿ๐‘  ๐‘œ๐‘“ ๐‘œ๐‘ฃ๐‘’๐‘Ÿ๐‘ก๐‘–๐‘š๐‘’ ร— (๐‘Ÿ๐‘Ž๐‘ก๐‘’ ๐‘๐‘’๐‘Ÿ โ„Ž๐‘œ๐‘ข๐‘Ÿ ร— 125%)
โ€ข If an invalid letter is pressed, display an error message.
 
Status
Not open for further replies.

About this Thread

  • 0
    Replies
  • 2K
    Views
  • 1
    Participants
Last reply from:
Leinette_Alvarez

Online now

Members online
1,026
Guests online
718
Total visitors
1,744

Forum statistics

Threads
2,276,962
Posts
28,973,362
Members
1,229,667
Latest member
Kismut26
Back
Top