Question: You have the text file imp_h21.txt on you. The Tab_Pers.cpp program is used to read this file, fill in the pers table with objects of


You have the text file imp_h21.txt on you. The Tab_Pers.cpp program is used to read this file, fill in the pers table with objects of the Person class and to transmit by reference the exact number of people read. Adapt this program in C++ allowing also 1. display people read using appropriate function (sli 2. to determine and display the information of a person of the greatest height; 3. determine and display all information a) of a woman with the smallest height b) a man of the lightest weight 4. to calculate and display a) the average weight of women b) the average height of men - 5 This is the imp h21.text F 2187 5 6 180 M 4148 5 11 185 M 2233 6 1 188 4433 4 10 127 2108 5 11 165 F 4100 5 119 F 2176 6 2 187 5423 9 147 M 4169 5 6 123 F 4177 5 9 138 M 2879 2 191 F 5477 5 11 147 M 4869 3 162 F 4354 5 6 169 M 2235 6 2 189 M 5444 5 10 151 F 4198 9 125 F 5678 6 7 190 F 1357 5 6 155 F 3498 4 11 135 This is the Tab_Pers.cpp. 40 1 #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
