Question: Question B2 The timetabling program at the University of Outer Hebrides must handle information about lecture rooms (possibly with ReCap facilities) and computer clusters (equipped

Question B2 The timetabling program at the University of Outer Hebrides must handle information about lecture rooms (possibly with ReCap facilities) and computer clusters (equipped with computers running a specified operating system). All the available university rooms (computer clusters and lecture rooms) have different seating capacities. Implement the following: a) A class Room, containing two variables specifying the room's name and seating capacity (choose appropriate names and types); values for those variables should be passed as parameters to a constructor. Your class solution should only contain an appropriate constructor and essential accessor methods. [3 marks] b) Sub-classes Computercluster and LectureRoom, which extend class Room. Class Computercluster adds information about the type of an operating system installed on the cluster's computers (passed as a parameter to a constructor). Class LectureRoom adds an indicator showing whether there are ReCap facilities in the room or not (passed as a parameter to a constructor). Your subclasses should only contain appropriate constructors and essential accessor methods. [8 marks] c) A method called suitableclusters, which takes as parameters an array of Room objects (representing all the rooms in the university), the needed capacity of a cluster and the name of the required operating system, and returns an Arraylist whose elements are the names of potentially suitable clusters (a cluster is potentially suitable if its seating capacity is not lower than the needed capacity and its computers are running the required operating system). [14 marks]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
