Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The example output is like this C++ Programming. Need help QUESTION 1 Trainers for Olympic 400 meters male relay team are trying to form a

image text in transcribed

image text in transcribed

The example output is like this

image text in transcribed

C++ Programming. Need help

QUESTION 1 Trainers for Olympic 400 meters male relay team are trying to form a team of four fastest runners. A list of names of ten runners and their three trial running times are stored. Write a complete C++ program to do the following. 1. Create four parallel arrays to store the ten runners names in an array called runners and three other arrays to store the three trial runs of runners in arrays called triali, trial2 and trial3 (2 marks) 2. Read input into the arrays. (2 marks) 3. After processing all input information, the program should: a. calculate the average running times of runners based on the three trial runs b. determine how many runners are faster than national average of 21.50 seconds. c. arrange and display the runners in ascending order based on average running times d. display the names of the top four fastest average runners to be selected for the 400 meters olympic team. (11 marks) Array runners and trial runs at the beginning ali 20.10 20.50 20.30 abu 22.00 22.30 22. 20 mohd 21.50 21.00 21.00 john 20.50 21.00 20.00 zack 21.10 21.20 21.00 zeke 22.50 22.00 22.30 burn 19.50 19.50 19.50 sani 20.20 20.30 20.00 kat 22.10 22.10 22.20 noh 21.00 21.10 21.00 Array runners and average running times ali average 20.30 aby average 22.17 mohd average 21.17 john average 20.50 zack average 21. 10 zeke average 22.27 burn average 19.50 5 ani average 20.17 kat average 22. 13 noh average 21.03 There are 7 runners faster than Nat ional Average 21.50 seconds Array runners in sorted average running times burn 19.50 sani 20.17 ali 20.30 john 20.50 noh 21.03 zack 21.10 mohd 21.17 kat 22.13 abu 22.17 zeke 22.27 The relay team is burn, sani, ali, john

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

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

Describe the movements permitted by each type of synovial joint.

Answered: 1 week ago

Question

Discuss the Rights issue procedure in detail.

Answered: 1 week ago

Question

Explain the procedure for valuation of shares.

Answered: 1 week ago

Question

Which months of this year 5 Mondays ?

Answered: 1 week ago

Question

Define Leap year?

Answered: 1 week ago