Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In C++ Please! Sample output 2. Given the following arrays int age[5]={33, 67, 55, 72, 44 }; string names[3]={Trump, Clinton, Obama}; Array age: 33 67
In C++ Please!
Sample output 2. Given the following arrays int age[5]={33, 67, 55, 72, 44 }; string names[3]={Trump, Clinton, Obama}; Array age: 33 67 55 72 44 Array names: Trump Clinton Obama write a program to do the following a. call a function template displayAll to display each arrays age and names. displayAlll age, 5); displayAll( names, 3); Vector vage: 33 67 55 72 44 Vector vnmaes: Trump Clinton Obama Age average = 54.20 b. copy array age into vector vage, and array names into vector vnames call function templet DisplayAll to display each vector DisplayAll( vage ); Display Alla vnames); C. d. Call function computeAgeAve to compute and return their age average. Display the resultStep 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