Question: 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
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
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
Get step-by-step solutions from verified subject matter experts
