Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Styles Write a program that will utilize the linked List to perform the following tasks defined below. The program will keep track of all the

image text in transcribed

Styles Write a program that will utilize the linked List to perform the following tasks defined below. The program will keep track of all the data about marathon runners and their previous runs. Each Runner will have a name (string), a List of ScoreInfo (Linkedlist) and their single Best Average Running Time for 1km for all time (float seconds). Each Scorelnfo will consist of distance in kilometers (integer) and the running time in minutes (integer). In the main, ask user to select how many Runners they want to create (maximum 10) and create an array of Runners for the selection size. For each Runner, fill their attributes as shown in the sample run below. The score of the previous runs will be kept as Score Info objects inside a LinkedList on Runner class. Each node of the score linked list will have a single Scorelnfo object. Prompt the user to get the number of previous runs a runner made to fill all their scores. Display all the previous running times for all the Runners. Calculate their Best average Running time of 1 KM according to their previous Run scores, store them in the Runner objects and Display them as shown in the sample run below. Note: You must implement "Linkedlist.h" library. The implementation can be found in the Moodle page as Linkedlist v0.4 My Sample Run: How many runner information will you enter: 2 Name of the Runner 1: Baris How many previous run does Baris have: 5 Enter Baris's scores Run 1: Distance(km): 10 /Running Time(minutes): 66 Run 2: Distance(km): 5 /Running Time(minutes): 30 Name of the Runner 2: Melih How many previous run does Melih have: 3 Enter Melih's scores: Run 1: Distance(km): 11/Running Time{minutes): 60 /Run 2: Distance(km): 3 /Running Time(minutes): 25 Baris's Runs: Distance(km): 10/ Running Time(minutes): 66 / Distance(km): 5 Running Time[minutes): 30 Melih's Runs: Distance/km): 11/ Running Time minutes): 60 /Distance(km): 3 Running Time(minutes): 25... Baris's best average running time for 1 km:4.6 / Melih's best average running time for 1 km:5.45 MET

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_2

Step: 3

blur-text-image_3

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

Seven NoSQL Databases In A Week Get Up And Running With The Fundamentals And Functionalities Of Seven Of The Most Popular NoSQL Databases

Authors: Aaron Ploetz ,Devram Kandhare ,Sudarshan Kadambi ,Xun Wu

1st Edition

1787288862, 978-1787288867

More Books

Students also viewed these Databases questions

Question

3. Designing the intervention

Answered: 1 week ago

Question

Explain the forces that influence how people handle conflict

Answered: 1 week ago