Question: The Answer should be in C Programming language. [1] A building with 16 apartments is to be represented in an array (Apt #: 1 to
![The Answer should be in C Programming language. [1] A building](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f50302acaf8_12266f503022f99c.jpg)
The Answer should be in C Programming language.
[1] A building with 16 apartments is to be represented in an array (Apt #: 1 to 16). - Create an array of size 16 of integers. The apartment number will serve as the index of the array. - Read from a text file a set of integer values which represent the number of people live in each apartment. For example: a building which has 4 apartments can be represented as follows: 2 3 6 2 Create and fill an array of integers building as shown above then print the following information: 1- Total number of people in the building. 2- The average number of people per apartment. 3- The number of apartments whose tenants above the average. and the number of apartments whose tenants below the average. 4- The maximum number of people in apartment and location. Note : 1- Use a function for every one of the above 4 requirements. 2- Submit your program through Ritaj by reply to the message 230-Ass4-F21
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
