Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please answer in C++ Write a program that does the following steps: a. stores the following 20 autos in a map container Auto. Cadillac, BMW,

Please answer in C++

Write a program that does the following steps:

a. stores the following 20 autos in a map container Auto.

Cadillac, BMW, Mercedes, Toyota, Honda, Hyundai, Yugo, Ford, GM, Bentley, Ferrari, Alpha-Romeo, Pugeot, Jaguar, Oldsmobile, Rolls-Royce, Saab, Mercury, Nissan, Datsun

the associated string is the cars name and corresponding int value represents the length of each car

b. Print the entire map displaying car name & word-length

c. Display all cars having a word-length > 5

d. Calculate the numerical sum of each cars name and store it in a vector Total

e. Print the entire vector Total

f. Calculate the mean(Mean) value of vector Total

g. Display all cars having numerical values greater than Mean

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

The Power Of Numbers In Health Care A Students Journey In Data Analysis

Authors: Kaiden

1st Edition

8119747887, 978-8119747887

More Books

Students also viewed these Databases questions

Question

3. List ways to manage relationship dynamics

Answered: 1 week ago