subject

Solve it in c++.
you are given two files “hoursworked. txtpreview the document” which contains employee id and hours worked for the week and “hourlyrate. txt”preview the document which contain employee id and hourly rate. write a program to produce a report (payroll. txtpreview the document) which will list only employees who worked, their hourly rate and total hours worked for the week and pay for the week. the report and output file should contain one record per employee who worked for the week. also, display the output on the screen.
use following files for input:
hoursworked. txt is
213 40
223 32
233 34
233 4
233 3
233 9
243 30
303 30
413 31
423 35
433 31
443 39
453 36
463 31
473 30
483 36
483 6
483 3
483 7
493 34
503 31
643 36
653 34
663 30
673 31
753 33
763 32
hourlyrate. txt is
123 14.5
133 16.9
143 13.5
153 14.4
163 13.9
173 11.2
183 10.6
193 14.7
203 19.0
213 18.3
223 12.3
233 14.5
243 16.2
253 12.4
263 14.3
273 19.0
283 18.9
293 16.1
303 12.8
313 19.8
323 14.4
333 10.5
343 12.9
353 15.8
363 19.0
373 15.8
383 16.6
393 14.1
403 12.5
413 16.4
423 15.6
433 10.9
443 16.5
453 14.7
463 13.7
473 13.8
483 10.4
output should look like
employee id hourly rate hours worked gross pay
213 18.30 40.00 732.00
223 12.30 32.00 393.60
233 14.50 50.00 725.00
243 16.20 30.00 486.00
303 12.80 30.00 384.00
413 16.40 31.00 508.40
423 15.60 35.00 546.00
433 10.90 31.00 337.90
443 16.50 39.00 643.50
453 14.70 36.00 529.20
463 13.70 31.00 424.70
473 13.80 30.00 414.00
483 10.40 52.00 540.80
493 16.90 34.00 574.60
503 15.10 31.00 468.10
643 14.20 36.00 511.20
653 16.00 34.00 544.00
663 12.00 30.00 360.00
673 10.60 31.00 328.60
753 10.60 33.00 349.80
763 16.30 32.00 521.60

ansver
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 02:30, quesorules7101
Larry sent an email to andy. andy didn't open larry's email but still understood what the message was. how did andy determine the message without opening the email?
Answers: 1
image
Computers and Technology, 23.06.2019 11:00, danielcano12281621
Sports and entertainment class, your goal is to increase attendance and make a profit for a game by getting your team on a winning track with total salaries less than $3,000,000
Answers: 3
image
Computers and Technology, 23.06.2019 19:30, alangonsales6232
2. fluorine and chlorine molecules are blamed fora trapping the sun's energyob forming acid rainoc producing smogod destroying ozone molecules
Answers: 2
image
Computers and Technology, 23.06.2019 21:00, kkpsmith
Alcohol’s affects on the cornea and lens of the eye make it more difficult
Answers: 1
You know the right answer?
Solve it in c++.
you are given two files “hoursworked. txtpreview the document” which contains...

Questions in other subjects: