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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!