Question
A building with n apartments is to be represented in an array write an application that reads the number of appartments and use it as
A building with n apartments is to be represented in an array
write an application that reads the number of appartments and use it as the size of the array the apartment number will serve as the index of the array
The values in the array represent the number of people who loive in the apartment.
now creat a building (array on integers) as above then print the following information
number of people in the building
the average number of people per apartment
the number of apartments with above-average occupancy, and the number with below-average occupancy
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