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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started