Hello, given an input file with the following information, I would like to write a program that will accumulate the total hours worked for each employee using array of records(structs).
I have written the following function so far but it I have been geting -nan as my result..... I believe the problem is that I need to initialize "name[i].total_hr =0.0" so I can accumulate the total hours.
Note: I only pasted a part of my code since the whole program is pretty big, please let me know if any additional information about my code is needed.