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, 23.06.2019 04:00
Laire writes a letter to her grandmother, in which she describes an amusement park she visited last week. she adds pictures of that place in her letter. which feature of a word processing program will claire to remove unwanted parts of the pictures?
Answers: 3
question
Computers and Technology, 23.06.2019 05:20
Which operating system is a version of linux?
Answers: 1
question
Computers and Technology, 24.06.2019 02:10
Which sentences describe the things you need to ensure while creating a sketch and a drawing? while an artistic or creative drawing is a creative expression, a technical drawing is an informative expression. you need to create accurate and neat drawings to convey accurate information. a technical drawing clearly conveys its meaning or information, and does not leave room for interpretation maintain a good speed while creating drawings
Answers: 1
question
Computers and Technology, 24.06.2019 07:00
Selective is defined as paying attention to messages that are consistent with one’s attitudes and beliefs and ignoring messages that are inconsistent.
Answers: 1
You know the right answer?
Solve it in c++.
you are given two files “hoursworked. txtpreview the document” which contains...
Questions
question
Mathematics, 23.07.2019 03:10
Questions on the website: 13722361