Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Using Java programming language, implement the class LectureBuilding assuming all the other classes are implemented. You need to document your code using Javadoc for full
Using Java programming language, implement the class LectureBuilding 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. The method addLectureHall checks if the lecture 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. w The method calculate TotalNumberRooms returns the sum of the number of offices and the number of lecture halls. Building Person Campus name. String -name String people ArrayList int Dint buldings. ArrayList - buildings: ArrayList - Building(String name, double size): - getName: String + Person(String name) + getName: String +getido int + setName(String name): void + printBuildings()void + main(String. I args) void - getld()int - setName(String name): void Extends Extends h Extends Extends Student Instructor Residence LectureBuilding offices ArrayList courses. ArrayList - HashMap addEvaluation String course String mark) void + addRoom(String roomName. Integer capacity) void + addGrade(String course. Integer grade) void - printEvaluations void - toString String + calculate Averagec integer + addLectureHall String roomName Integer capacity) vodi + calculate Tota NumberRooms). Integer + ToStringo. String + calculate AvilableCapacityo Integer - toString(): String toStringo String
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