Question
Using c++ you are given a .txt file named tests.txt containing test trials and other information about an experiment. There are 5 pages of grouped
Using c++ you are given a .txt file named tests.txt containing test trials and other information about an experiment. There are 5 pages of grouped up data separated by commas that contain different tests such as: Testone,1,73843,176342,2,120412,70411,3,128594,87029,4,134628,54217,5,144725,80752,6,94704,91930,7,144639,55860,8,136722,87859 Test Two,1,131248,27193,2,181141,25397,3,73931,113859,4,50250,147090,5,65839,115018,6,92901,119643,7,89256,145869,8,84767,137731,9,63223,110094,10,44737,112851,11,62228,122464,12,87928,127993,13,123601,60549,14,148351,0,15,0,128285,16,74513,101722,17,93680,71371,18,0,166076 Testthree,1,93390,86454,2,142010,33630 Test Four,1,93315,64073,2,66026,108875,3,82537,100471,4,54415,118826,5,81808,104678,6,72190,46891,7,68232,104287,8,61510,15141,9,82498,36246,10,95734,14154,11,65477,109455,12,90430,54168 Testfive,1,63555,124139,2,103477,123073,3,0,151630,4,87742,110789
your job is to open the file, and display the data as shown below.
Enter request: load tests.txt
Reading: tests.txt
...Testone...8 total trial runs
...
...Testtwo...18 total trial runs
... ...Testthree...2 total trial runs
...
(until end of file)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started