This one was a little tricky, first you need to find a tutorial on how to input and read text files, and then your will need to substract a little string form a big string (see this link to know how to do that: http://www.cplusplus.com/forum/beginner/14310/) and finally you will have to convert that string to a float in order to get the averages (see this link to know how to convert strings to floats: http://www.cplusplus.com/forum/general/13135/).

Here is my Github code: https://github.com/MiguelAngelCardenas/WSQ16/blob/master/cars.cpp

 

 

CC BY 4.0 WSQ16 by Miguel Angel Cardenas Ortega is licensed under a Creative Commons Attribution 4.0 International License.