Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Application Development And Design

Authors: Michael V. Mannino

1st Edition

0072463678, 978-0072463675

More Books

Students also viewed these Databases questions

Question

Values in a Primary key column can be changed. True False

Answered: 1 week ago

Question

a. What is the purpose of the team?

Answered: 1 week ago

Question

b. What are its goals and objectives?

Answered: 1 week ago