Thanks For Help...
The application is used by college staff to allocate students to rooms when they apply for hostel accommodation and de-allocate the rooms at the end of the semester.
Room allocation is performed on a semester basis. The college have 2 semesters in each academic year. Before the start of each semester, students may apply for hostel rooms for the coming semester. All rooms in the hostel are for single occupancy and are of the same type. There are 4 floors in the hostel with 8 rooms on each floor. The floor number is from 1 to 4 and the room numbers on each floor are from 1 to 8.
Students are required to fill in their name, registration number, and year and semester of study when they apply for a hostel room. (Note that all courses in the university are of three-year duration.)
By the end of each semester, all students currently occupying the rooms in the hostel are required to vacate them. They need to apply again, if they wish, for the next semester room allocation.
*Help me to design and implement classes to represent student and hostel room objects for the hostel room management application. Classes must have at least the following operations:
checking if a room is available or occupied
allocating a student to a room
de-allocating a room
getting the student who occupies a room