Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Implement a program in C++ that does the following: 1. Requests the user and Reads the information of a person such as the name
Implement a program in C++ that does the following: 1. Requests the user and Reads the information of a person such as the name and age, as input 2. The number of inputs must be as many as the user wants to enter 3. Saves those inputs 4. Calculates the average age of the whole group of inputs. 5. Displays the output. Make sure the output format is neat and follows a column format with proper column headings. For example (see the figure below) Person Name Age Sam 28.00 John 24.00 Lakesha 21.00 Reginald 20.00 AVERAGE 23.25 NOTE: Write comments Maintain proper indentation Use Modularity (with needed subfunctions, if any) Make sure the program is debugged and tested to see that it is working as per the specifications above. Activate W Go to Settings
Step by Step Solution
★★★★★
3.40 Rating (147 Votes )
There are 3 Steps involved in it
Step: 1
cpp include iostream include vector include iomanip Function to input name and age of a person void ...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