Question: C++ Problem I/O file reading problem: Problem T Download the file activitydata.csv from the Moodle. This csv has two columns, activity (a string) and distances
C++ Problem I/O file reading problem:


Problem T Download the file activitydata.csv from the Moodle. This csv has two columns, activity (a string) and distances (a double). The file will look similar to this: activity, distance "run", 4.7 "skierg", 1.0 "erg", 5 et cetera For this problem, write function that reads all the data from a file, which should be named fileName and returns distance information (a double) for a given activity
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
