Computer Science, asked by akshay7723, 4 months ago

Some officers want to calculate the population of a village. They came into the village and
ask every family head to count all the members in every family and add them. Officers
expecting that every family head will come with the same number and it will be easy to
conclude. Oficers are thinking that if family members in 5 families are as follows: 4.2.3,
2,5 then the total population of the village will be 16. Now the villagers came to officers at
different timings. The First-person came and tell them the total population of the village is
12. after some time the second person came and tell them that the population of the village
is 14 then the third person came and tell them that the population is 13 and so on. Officers
are surprised because they are expecting the same number from each family head. Here
every family head was doing the same mistake repeatedly.
Now, you need to identify the mistake done by the villagers and write a C++ program
including the same. Your program should ask the user to enter the number of families in
the village and ask to enter the number of family members in each family. Then it will print
the result for the total population of the village according to the villagers counting. Then it
will print the final and correct result also​

Answers

Answered by arysb33
0

Answer:

hsjshejeejeueuejeieheeuehe ejee

ermrjrjtjrhrjrhrotrbrirhrhrhrjrrhrjrorhrorhtithtprrhr trrthrjtjttohrrhrhththrhrhrhrirhrirhrorjrkrjrhrhrzrrurorhrjror rjrjrkrturorhrjrhrorh

Similar questions