Answer:
This can be done by creating a while loop which reads each line of the data file until the end of file (EOF) is detected. Each line of data should be read into a string variable called s1 and a float variable called f1. Then, these values can be added to the vectors declared in Part A by using the push_back() function of the vector class. This will add the time/date stamp stored in s1 and the temperature stored in f1 to the correct vector variables.