Page 1 of 1

I need to use input file. My input file is this 156486 4.3 15.7 135486 7.2 14.3 456741 2.1 13.4 681324 9.8 12.4 987543 3

Posted: Tue Jul 05, 2022 10:27 am
by answerhappygod
I need to use input file.
My input file is this
156486 4.3 15.7135486 7.2 14.3456741 2.1 13.4681324 9.8 12.4987543 32.5 14.3314549 33.1 15.1135461 34.1 6.5134487 95.1 6.1135123 4.5 15.6135498 43.1 22.6258328 93.5 10.6322491 98.1 11.7212519 8.2 13.2020907 21.3 14.3775306 86.5 15.7342084 62.7 12.4785736 14.6 6.1395638 6.5 6.3941318 42.5 5.8530284 47.6 7.4872512 21.2 1.8758362 72.4 10.8075295 98.9 11.1997815 04.4 15.2193908 92.9 8.7848892 87.5 9.6587289 71.4 3.2255093 21.7 2.5402348 15.6 6.1612837 41.4 7.5
It is C++!
P.s I will also post a screen shot of what the output shouldlook like please show a screen shot of your out put as well. Thankyou
I Need To Use Input File My Input File Is This 156486 4 3 15 7 135486 7 2 14 3 456741 2 1 13 4 681324 9 8 12 4 987543 3 1
I Need To Use Input File My Input File Is This 156486 4 3 15 7 135486 7 2 14 3 456741 2 1 13 4 681324 9 8 12 4 987543 3 1 (100.81 KiB) Viewed 12 times
I Need To Use Input File My Input File Is This 156486 4 3 15 7 135486 7 2 14 3 456741 2 1 13 4 681324 9 8 12 4 987543 3 2
I Need To Use Input File My Input File Is This 156486 4 3 15 7 135486 7 2 14 3 456741 2 1 13 4 681324 9 8 12 4 987543 3 2 (54.71 KiB) Viewed 12 times
Using a structure, and creating three structure variables; write a program that will calculate the total pay for thirty (30) employees. (Ten for each structured variable.) Sort the list of employees by the employee ID in ascending order and display their respective information. Description Employee IDs Hours Worked Pay Rate Total Pay Structure name administrative office field DataType of INT of DOUBLE of DOUBLE of Double payroll structure variable structure variable structure variable Excluding the main function, your program should have four additional functions that will get the hours worked, and payrate, calculate the total pay, sort the data and display your output. Name of function Properties of function Base pay should be calculated by multiplying the regular hours worked by pay rate. If a person has worked over forty (40)hours, total pay is calculated by an adding 10% of base pay for every five (5) hours over forty (40) to base pay. (ie a person working 50 hours with a total pay of $100 would have ((hours-40)/5)*(base pay*.1) + base pay. Definition of Function. Members employees jd hrworked_id payrate_jd total_pay_jd Note: jd represents the initials of the programmer. Your function names should be named by replacing the initials jd with your first and last initials Array Size 10 10 10 Read Input File get_jd Called from main Should pass hours worked and pay rate Calculate Pay calc_jd Called from main Should pass hours worked and pay rate and calculated total pay Sort Data sort_jd Called from main Sort data by student ID using the bubble or selection sort; passing all variables Output Results prt_jd Called from main Should pass employee id, hours worked, pay rate and total pay. Then print the data. ZOOM +
Employee ID 1 2 3 4 LO 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Hours Worked 40 18 40 38.6 49.3 51.7 39.2 34 12 60 70 87.2 99 1 33 48.4 13 62.5 00 N 8 2 Pay Rate 20.5 60.32 12.5 15 80 10 19.24 13 8 70.12 11 34 12 300 43.5 43.3 10.7 32 11.25 7.75 Total Pay 820 1085.76 500 579 3944 517 754.208 442 96 4207.2 770 2964.8 1188 300 1435.5 2095.72 139.1 2000 90 15.5