Question
Design and implement a class called LectureHall that contains instance data for the hall name, hall id number, its description, location, maximum capacity, currentStudentCapacity, electricalCondition,
Design and implement a class called LectureHall that contains instance data for the hall name, hall id number, its description, location, maximum capacity, currentStudentCapacity, electricalCondition, and statusOfAvailability. Define the LectureHall constructor to accept and initialize some relevant data. Also, include getter (observer) and setter (mutator) methods for some relevent instance data. Include also a toString method that returns a detailed description of each the LectureHall object. Create a driver/client class, whose main method instantiates and manipulates several LectureHall objects (you may utilize any suitable JCF to dealing with these objects). You are required to apply the file processing concept such that data related to the created LectureHall objects can be stored into a text file. At the same time, you can access back the stored data for any relevant function (c). In doing so, you may create additional methods in the client program. Also, you are required to apply the concept of exception (check or uncheck exception) to any relevant function (s) in this program.
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