Question: Data file : CS141 Assign14.txt Preview the document The data file provided above has a list of names, hourly salary and hours worked per day.

Data file : CS141 Assign14.txt

Preview the document The data file provided above has a list of names, hourly salary and hours worked per day. Your assignment is for each person on the list, find their total salary for the week and print out the vital info.

For example, the first like of the data file looks like Sue 12.60 8 4 5 8 2 This should print out the following: Sue worked for a total of: 27 hours at $12.60 an hour for a gross pay of $340.20. After 25% taxes their total net pay should be $255.15. For taxes, if a person has a gross pay of $400 or more their taxes are 33% of the gross, otherwise it is 25%.

Note that not every person works 5 days, so you need to account for that. Also watch your decimals. Hours are all in integer values, while decimals need to be rounded to two decimal places. Also, note that the data file has some lines that are empty. "".

Make sure that you skip those lines and don't crash if that happens. Just skip the empty lines.

please use while,if loops , or line scanner. Make it look a begginers work.

java cs141

pic of txt file:

Data file : CS141 Assign14.txt Preview the document The data file provided

Sue Juan 12.60 13.75 8 4 5 8 2 4 2 7 5 10 Betty Jin 12.10 14.9 9 3 5 7 8 8 2 3 4 1 Carlos 10 Anthony 7.5 Mary 12.5 4 4 4 4 1 8 8 8 8 8 10 10 10 10 cleo Beth Leo 9.99 12 12 12 11.11 10 10 15.00 8 8 8 8 8 Anderson 11.20 5 5 5 4 5 5 2

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!