Search for question
Question

1 Overview

Write a C program that inputs occupancy data of a building and reports some information

about water usage in the building. Assume that the number of units per floor is fixed at 6

and that for the number of floors f the relationship 1 ≤f ≤ 75 holds.

You will input, in this order (see the sample data file); all values are integers:

• the average gallons used per day per person (assuming this comes from some national

averages)

the average gallons used per unit (again, from some average)

the number of floors f

• the number of units per floor u (considered fixed for our program)

followed by f x u number of values each representing the number of people living in

the corresponding unit

Fig: 1