Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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.3333333333333335Step 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