Question: Please write a program with c++ 1. Use the following struct to store the name and time of a runner: struct RUNNER { char name[8];

Please write a program with c++ 1. Use the following struct to store the name and time of a runner:

struct RUNNER { char name[8]; int seconds; };

Create an array of runners and allow the user to input a name and time for each runner. The array should store a minimum of 3 runners. Output the runners who are first, second and third, etc.

You must use a fixed or dynamic array:

RUNNER runners[8]; RUNNER * runners = new RUNNER[8];

You may use std::sort to sort the runners.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!