Question: For problems provide: 1. inputs: any value needed by your algorithm must be provided through an input 2. outputs 3. error conditions 4. an algorithm
For problems provide:
1. inputs: any value needed by your algorithm must be provided through an input
2. outputs
3. error conditions
4. an algorithm using pseudocode
5. a set of test cases
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.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
