Question: code in java please COMP 2143 ASSIGNMENT #2 Write a program to read the name of the employee, the hours worked in a week using
COMP 2143 ASSIGNMENT #2 Write a program to read the name of the employee, the hours worked in a week using GUI and then output the gross pay, tax, and net pay to an output file. Program calculations are based on the following Basic pay rate is $20.00/ Hour Overtime (over 40 hours/week) pay rate is 1 % times the basic rate. Tax rate is 10% of the first $600,00 15% of the next $300.00, and 20% for the rest. Output format should be similar to the following: (This is just an example for illustration purpose) Employee name: John Doe Basic pay rate: $20.00 Hours worked 10 Overtime: Gross Pay $ Tax: Net Pay: S. KEYWORDS: If/else statements Read using Gul from Keyboard and output to an output file ("out.dat") C. NOTE: Each student must do his or her own work and submit a copy of the following a. Input data b. Documented program Documented output file Use the following hours and output the results for each situation 1. 20 2.25 3.35 4.50 5.80 Run the program 5 times with five different data given above. Each time copy and append the output to a word document. Convert this word document with all five outputs into PDF file before you upload this document along with the documented program
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
