Question: Payroll Program: Create a Java application in NetBeans called Lab04 that creates an employee's paystub information. The program should first declare the constants as final

 Payroll Program: Create a Java application in NetBeans called Lab04" that

Payroll Program: Create a Java application in NetBeans called Lab04" that creates an employee's paystub information. The program should first declare the constants as "final doubles" for the following withholding rates: SOC_SEC_RATE = 0.06; MEDICARE_RATE=0.01; UNION DUES RATE = 0.01; RETIREMENT PLAN RATE = 0.02; RETIREMENT HEALTH_RATE = 0.03; Next, it should capture the employee's hours worked in a week, the employee's hourly pay rate, the federal tax withholding rate, and state tax withholding rate. Use the Scanner class in Java located in the java.util library (e.g. include this statement: import java.util.Scanner;). The program should print out a "Paystub Banner" (see example run below), the employee's hours worked, hourly pay rate, gross pay, and then a "Deductions. This section indents two spaces and reports the Federal Tax, State Tax, Social Security Tax, Medicare tax, Union Retirement Plan, and Retirement Health withholding rates as a percent, the associated actual deductions, the Total Deductions, and the Net Pay. Gross pay should be calculated by multiplying the number of hours per week by the hourly rate. If the employee works more than 40 hours in a week, then the employee is paid at a rate of 1.5 times the pay rate for the hours above 40. Net Pay should equal the Gross Pay ns. All dollar amounts should be preceded by a "S" and reflect two decimal places. You should use the printf method to format all dollar amounts so that they display accurately - including when you have 0 cents (e.g. $51.00). Also, please use the "t" (tab) escape sequence to format your output. To print a "%", you should enter two (e.g. "%%"). Your output should be formatted exactly as the example run below and your calculations should be accurate to the penny. You must use variable names and constant names that conform to the naming conventions discussed in the text book. Also, please include block comments, line comments, and a program header documentation block. Below is an example (Of course, you would replace my name with your name as Program Author): . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Program Name: Lab04 - PAvstuk Calculations - Program Description: This program calculates net paycheck information Program Author: Kerry V. Cramer Date Created: 02/10/2016 . Change Change Date Programmer Name Description Sample runs: Please enter number of hours worked in a pay period: 40 Please enter hourly pay rate: 10 Please enter federal tax withholding rate (e.g. 0.15): 0.15 Please enter state tax withholding rate (c.g. 0.045): 0.10 Please enter number of hours worked in a pay period: 50 Please enter hourly pay rate: 10 Please enter federal tax withholding rate (e.g. 0.15): 0.15 Please enter state tax withholding rate 0.0. 0.045) : 0.10 * Pay Information: * * Paystub Information: * Hours Korked: Pay Rate: Gras Pay: Deductions: $10.00 $400.00 Hours Worked: Pay Rate: Gross Pay: Deductions: 50.00 $10.00 $550.00 # Zip the Lab04 folder. Rename the zip file to "Your Name Lab04.zip" (e.g. Joe Student Lab04.zip), and send it to me as an attachment in Blackboard. Flowchart: See below. Follow the connectors ( A W G ) for the complete flowchart. Payroll Program: Create a Java application in NetBeans called Lab04" that creates an employee's paystub information. The program should first declare the constants as "final doubles" for the following withholding rates: SOC_SEC_RATE = 0.06; MEDICARE_RATE=0.01; UNION DUES RATE = 0.01; RETIREMENT PLAN RATE = 0.02; RETIREMENT HEALTH_RATE = 0.03; Next, it should capture the employee's hours worked in a week, the employee's hourly pay rate, the federal tax withholding rate, and state tax withholding rate. Use the Scanner class in Java located in the java.util library (e.g. include this statement: import java.util.Scanner;). The program should print out a "Paystub Banner" (see example run below), the employee's hours worked, hourly pay rate, gross pay, and then a "Deductions. This section indents two spaces and reports the Federal Tax, State Tax, Social Security Tax, Medicare tax, Union Retirement Plan, and Retirement Health withholding rates as a percent, the associated actual deductions, the Total Deductions, and the Net Pay. Gross pay should be calculated by multiplying the number of hours per week by the hourly rate. If the employee works more than 40 hours in a week, then the employee is paid at a rate of 1.5 times the pay rate for the hours above 40. Net Pay should equal the Gross Pay ns. All dollar amounts should be preceded by a "S" and reflect two decimal places. You should use the printf method to format all dollar amounts so that they display accurately - including when you have 0 cents (e.g. $51.00). Also, please use the "t" (tab) escape sequence to format your output. To print a "%", you should enter two (e.g. "%%"). Your output should be formatted exactly as the example run below and your calculations should be accurate to the penny. You must use variable names and constant names that conform to the naming conventions discussed in the text book. Also, please include block comments, line comments, and a program header documentation block. Below is an example (Of course, you would replace my name with your name as Program Author): . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Program Name: Lab04 - PAvstuk Calculations - Program Description: This program calculates net paycheck information Program Author: Kerry V. Cramer Date Created: 02/10/2016 . Change Change Date Programmer Name Description Sample runs: Please enter number of hours worked in a pay period: 40 Please enter hourly pay rate: 10 Please enter federal tax withholding rate (e.g. 0.15): 0.15 Please enter state tax withholding rate (c.g. 0.045): 0.10 Please enter number of hours worked in a pay period: 50 Please enter hourly pay rate: 10 Please enter federal tax withholding rate (e.g. 0.15): 0.15 Please enter state tax withholding rate 0.0. 0.045) : 0.10 * Pay Information: * * Paystub Information: * Hours Korked: Pay Rate: Gras Pay: Deductions: $10.00 $400.00 Hours Worked: Pay Rate: Gross Pay: Deductions: 50.00 $10.00 $550.00 # Zip the Lab04 folder. Rename the zip file to "Your Name Lab04.zip" (e.g. Joe Student Lab04.zip), and send it to me as an attachment in Blackboard. Flowchart: See below. Follow the connectors ( A W G ) for the complete flowchart

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!