Question
Using Java programming language, implement class Residence assuming all the other classes are implemented. You need to document your code using Javadoc for full marks.
Using Java programming language, implement class Residence assuming all the other classes are implemented. You need to document your code using Javadoc for full marks. Make sure to include the author using the proper tag. Additional clarifications: The method addRoom checks if the room is in the HashMap. If the room is already in the HashMap, the capacity is updated. Otherwise, the room along with the capacity is added. The method calculateAvailableCapacity returns the available capacity calculated as follows: "Total capacity number of students". The total capacity is calculated by adding the capacity of each room.
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