Question: 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,

 Write a program to read the name of the employee, the

hours worked in a week using GUI and then output the gross

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) John Doe $20.00 10 Employee name: Basic pay rate: Hours worked: Overtime: Gross Pay: Tax: Net Pay: $....... $...... $.... KEYWORDS: If/else statements Read using GUI from Keyboard and output to an output file (out.dat") Use the following hours and output the results for each situation 1. 20 2. 25 3. 35 4. 50 5. 80

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!