Question
(use C language programing) [1] A building with 16 apartments is to be represented in an array (Apt #: 1 to 16). - Create an
(use C language programing) [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.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started