Question: C++ PROGRAM Running the Race (class runner) Write a program that asks for the names of five runners and the time it took each of

C++ PROGRAM

Running the Race (class runner) Write a program that asks for the names of five runners and the time it took each of them to finish a race. The program should display who came in first, second, and third place

Input Validation: Only accept positive numbers for the times.

The program should include: -Constructor (default, copy constructor, with parameters, default arguments

-In the main program: -Define a dynamic array composed of runner instances, where the number of runners is given by the user.

- The program must contain functions of: -To Enter the information of the runners and their respective times. - -Function:to Prints the first three positions. -Function: to sort by the parameter of the times in the runners in ascending order.

- Validate your program with five runners.

- Implement the program Using Dynamic Memory in the name of the runner

-Implement other program using a string type variable in the name of the runner

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!