Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribedimage text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Expert Systems Applications 33rd International Conference Dexa 2022 Vienna Austria August 22 24 2022 Proceedings Part 1 Lncs 13426

Authors: Christine Strauss ,Alfredo Cuzzocrea ,Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil

1st Edition

3031124227, 978-3031124228

More Books

Students also viewed these Databases questions

Question

3. Who would the members be?

Answered: 1 week ago

Question

4. Who would lead the group?

Answered: 1 week ago