Question
C++ programming 3-4: Output Formatting write a program that needs four triathlon race time records from a file. the name of the file is racedat.txt,
C++ programming
3-4: Output Formatting
write a program that needs four triathlon race time records from a file. the name of the file is racedat.txt, each line of the file represents one record and contains an athlete identifier ( a single character) and three numeric values. the three values are the completion times (in minutes) for the running, swimming, and biking stages of a triathlon. you will produce a nicely formatted report that displays these values, as well as the total time for each athlete. finally, your report should calculate the average total time for the race.
hint: may create your own racedat .txt file using windows notepad or other texgt editor. the input file should have the format:
A 31 27 52
B 29 31 58
C 35 36 31
D 34 36 62
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