Question: ( 1 6 pts ) Ch 9 - - # 3 2 ( people . dat is posted in Canvas ) A program is being
ptsCh#peopledat is posted in Canvas
A program is being written to store and manipulate information on some people,
including their name, height in feet and inches, both integers and weight in pounds.
This information is stored in a file named peopledat Each line in the file stores
the information for one person; there is one blank space between each piece of
information in the file. For example, the file might look like this:
Sammie
Richard
In your main script, for this problem, you should read this information in store it in a
vector of structures, and then print it out. For now, errorchecking on the file open
and close has been omitted for simplicity. Write a parseline function that will
take each line from the file and return a structure in the required format. For example,
if the file is as shown above, the result from your main script would be:
Sammie is tall and weighs pounds
Richard is tall and weighs pounds
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
