Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Professional SQL Server 2012 Internals And Troubleshooting

Authors: Christian Bolton, Justin Langford

1st Edition

1118177657, 9781118177655

More Books

Students also viewed these Databases questions

Question

Evaluate 3x - x for x = -2 Answer:

Answered: 1 week ago

Question

What is group replacement? Explain with an example. (2-3 lines)

Answered: 1 week ago