Answered step by step
Verified Expert Solution
Link Copied!

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 ... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Income Tax Fundamentals 2013

Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill

31st Edition

1111972516, 978-1285586618, 1285586611, 978-1285613109, 978-1111972516

More Books

Students also viewed these Programming questions

Question

Your organizations current programs (what you are now) P987

Answered: 1 week ago