Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

More Books

Students also viewed these Databases questions