Computers and Technology

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

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 15:00, nika0001
When designing content as part of your content marketing strategy, what does the "think" stage represent in the "see, think, do, care" framework?
Answers: 3
image
Computers and Technology, 23.06.2019 15:30, Dweath50
The processing of data in a computer involves the interplay between its various hardware components.
Answers: 1
image
Computers and Technology, 24.06.2019 21:40, jose4197
Clunker motors inc. is recalling all vehicles in its extravagant line from model years 1999—2002 as well as all vehicles in its guzzler line from model years 2004—2007. a boolean variable named recalled has been declared. given a variable modelyear and a string modelname, write a statement that assigns true to recalled if the values of modelyear and modelname match the recall details and assigns false otherwise.
Answers: 2
image
Computers and Technology, 24.06.2019 21:50, carter4026
The use of phrases, fragments, and punctuation can influence the mood of a passage; keeping this in mind, how would you describe the mood of the followingpassage? "fog on the essex marshes, fog on the kentish heights, fog creeping into the cabooses of collier-brigs; fog lying out on the yards, and hovering in the riggingof great ships; fog drooping on the gunwales of barges and small boats. fog in the eyes and throats of ancient greenwich pensioners, wheezing by thefiresides of their wards; fog in the stem and bowl of the afternoon pipe of the wrathful skipper; fog cruelly pinching the toes and fingers of his shivering little'prentice boy on deck." (5 points)
Answers: 2
Do you know the correct answer?
Solve it in c++.
you are given two files “hoursworked. txtpreview the document” which contains...

Questions in other subjects:

Konu
Business, 02.03.2020 21:32
Konu
Mathematics, 02.03.2020 21:32