Question: 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  

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

1 Expert Approved Answer
Step: 1 Unlock

cpp include iostream include vector include iomanip Function to input name and age of a person void ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!