Question: The second picture is the test case Using java to solve the question 4. Apartment complex census [40 points Suppose the management of an apartment


The second picture is the test case
Using java to solve the question
4. Apartment complex census [40 points Suppose the management of an apartment complex would like to know the demographics of the people living in the complex, more specifically the number of seniors, adults and children. Write an algorithm that will record the number of seniors, adults, and children in each apartment in the apartment complex, and then display the total number of seniors, the total number of adults, and the total number of children in the complex, as well as the average number of each (seniors, adults, and children) per apartment. s java Census How many apartments are in the complex? 3 How many children in apt 1? 5 How many seniors in apt 1? 4 How many adults in apt 1? 3 How many children in apt 2? 8 How many seniors in apt 2? 7 How many adults in apt 2? 6 How many children in apt 3? 1 How many seniors in apt 3? 1 How many adults in apt 3? 1 RESULT: 14 RESULT: 12 RESULT: 10 RESULT: 4.666666666666667 RESULT: 4.0 RESULT: 3.3333333333333335
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
