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

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 19:20
Terri needs to insert a cover page into her document. where should she go to access the commands to do so? o insert tab, objects group o insert tab, illustrations group o insert tab, pages group o insert tab, media group submit
Answers: 1
question
Computers and Technology, 23.06.2019 15:30
The song about casey jones a railroad engineer who gives his life on the job would most likely gall under the folk song category of? a-work song b-nonsense song c-religious song d-ballad
Answers: 1
question
Computers and Technology, 24.06.2019 14:30
Alison is having a hard time at work because hee inbox is flooded with emails every day. some of these emails are unsolicited. some of other she don’t need. which action should she take to better manager her emails?
Answers: 1
question
Computers and Technology, 24.06.2019 23:00
Why is it preferable to code web pages in html format? a. to create more lines code b. to apply general formatting rules c. to display properly as search results in all browsers d. to add meaning to the document
Answers: 1
You know the right answer?
Solve it in c++.
you are given two files “hoursworked. txtpreview the document” which contains...
Questions
Questions on the website: 13722362