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

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 calculate AvailableCapacity returns the available capacity calculated as follows: "Total capacity - number of students". The total capacity is calculated by adding the capacity of each room. Person Campus Building name: String - ID int -people. ArrayList printBuildings():void + main(String 01 args) void - Building - Building (String name, double size): + getName(): String getid:int + setName(String name): void + setName(String name): void Extends Extends Extends Extends 7 Student Instructor -courses: ArrayList - HashMap evaluations Residence - students: ArrayList - lectureHalls: HashMap - grades: HashMap

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!