Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need help writing this code in C++ language Write a program that reads four triathlon race time records from a file. The name of

I need help writing this code in C++ language

Write a program that reads 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: You may create your own racedat.txt file using Windows Notepad or other text editor. Your input file should have the format:

A 31 27 52

B 29 31 58

C 35 36 51

D 34 36 62

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Successful Keyword Searching Initiating Research On Popular Topics Using Electronic Databases

Authors: Randall MacDonald, Susan MacDonald

1st Edition

0313306761, 978-0313306761

Students also viewed these Databases questions

Question

3. Job rotation is used for all levels and types of employees.

Answered: 1 week ago