Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ Lab: Using Vectors Coach Blue wants to keep track of the total, average and max weight of the players on his wrestling team. He

C++ Lab: Using Vectors

Coach Blue wants to keep track of the total, average

and max weight of the players on his wrestling team.

He asks you to write a program that will prompt the

user ( Coach Blue ) for all 12 players weights. He

does not need to you store any additional information

(other than the weights).

The program should then

output for him, the total weight, the average weight

and the maximum weight.

Specifications

The weights should be stored in a vector of

doubles.

The vectors doubles must be output on one line,

each number followed by a space.

Also output the total weight.

Also output the average of the vectors elements.

Also output the max vector element.

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

Database And Expert Systems Applications 19th International Conference Dexa 2008 Turin Italy September 2008 Proceedings Lncs 5181

Authors: Sourav S. Bhowmick ,Josef Kung ,Roland Wagner

2008th Edition

3540856536, 978-3540856535

More Books

Students also viewed these Databases questions