Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

In RoomReservations.java I need help finishing the methods for F. List all avail

ID: 3696462 • Letter: I

Question

In RoomReservations.java I need help finishing the methods for

F. List all available smart rooms sorted by capacity (low to high)
G. List all available non-smart rooms sorted by capacity (low to high)
H. Reserve a room (set occupied to true)
I. Cancel a room reservation (set occupied to false)
J. See menu again

based on the code from prof using a sorting method.

You are to develop a reservation system for a training facility that has 24 rooms (some are smart rooms i.e. have full media capabilities, all have a capacity from 20 - 50 people)

You are to create a class Room.java that has:

Instance variables (all private)

int roomNumber

int capacity

boolean smart

boolean occupied

a getter method for each variable

a setter method for each variable

setter method for room number should validate the room number passed to the method as 1 - 24 (inclusive) if an invalid value is passed trap the user in a while loop until a valid value is entered

setter method for capacity should validate the capacity passed to the method as 20 - 50 (inclusive) if an invalid value is passed trap the user in a while loop until a valid value is entered

a default constructor method that sets the values of the instance variables as follows:

int roomNumber //this will be assigned 0

int capacity //this will be assigned 0

boolean smart //this will be assigned false

boolean occupied //this will be assigned false

a constructor method that takes arguments and sets the values of the instance variables as follows:

roomNumber //use the setter method for roomNumber to validate the room number passed to the method

capacity //use the setter method for capacity to validate the capacity passed to the method

smart //assign the value passed

occupied //assign the value passed

a toString method that returns a string of the values of all the instance variables

an equals method that accepts an instance of the class Room and returns a boolean

You are to create a class RoomReservations.java that will:

declare and create an array of instances of the class Room. Name the array reservations.The array will hold 24 instances of the class Room.

populate the array reservations with instances of the class Room:

assign roomNumber sequential numbers 1 - 24 (inclusive)

assign capacity a random value 20 - 50 (inclusive)

assign smart a random value, true or false

assign occupied the value false

allow the user to select from the following option list and then execute the appropriate action (you will have to develop the needed methods within RoomReservations.java).

A.List all rooms
B. List all available rooms
C. List all available smart rooms
D. List all available non-smart rooms
E. List all available rooms sorted by capacity (low to high)
F. List all available smart rooms sorted by capacity (low to high)
G. List all available non-smart rooms sorted by capacity (low to high)
H. Reserve a room (set occupied to true)
I. Cancel a room reservation (set occupied to false)
J. See menu again
K. Quit

Submit the files Room.java and RoomReservations.java.

From prof:

//the room assignment is giving people some challanges
//a few of the options the user can select involve
//presenting the room sorted by capacity
//you need to add this method
//which will sort the array of rooms passed to
//it by capacity: low to high by
public static void bubbleSortRoomByCapacity(Room[] x)
{
int n = x.length;
Room temp;
for(int pass = 1; pass < n; ++pass)
{
for(int i = 0; i < n - pass; ++i)
{
if(x[i].getCapacity() > x[i + 1].getCapacity())
{//swap
temp = x[i];
x[i] = x[i + 1];
x[i + 1] = temp;
}//end if   

}//end inner loop   
}//end outer for loop
}//end method bubbleSortRoomByCapacity


//then you need to call the method
//when the user selects an option that
//prints out the rooms for a certain
//attribute (e.g. available, smart etc)
//sorted by capacity)

//you need to add this line in the case
//statements for any user selection that
//involves displaying rooms by capacity
//make it the first statement for the
//case
bubbleSortRoomByCapacity(reservations);

What I have so far:

// Room.java

import java.util.Scanner;

public class Room
{
private int roomNumber;
private int capacity;
private boolean smart;
private boolean occupied;

//==CONSTRUCTORS==

//defualt constructor
public Room()
{
roomNumber = 0;
capacity = 0;
smart = false;
occupied = false;
}//end default constructor

//non-default constructor
public Room(int roomNumberPassed, int capacityPassed, boolean smartPassed, boolean occupiedPassed)
{
setRoomNumber(roomNumberPassed);
setCapacity(capacityPassed);
setSmart(smartPassed);
setOccupied(occupiedPassed);
}//end non-default constructor

//==GETTERS==

public int getRoomNumber()
{
return this.roomNumber;
}//end method

public int getCapacity()
{
return this.capacity;
}//end method

public boolean getSmart()
{
return this.smart;
}//end method

public boolean getOccupied()
{
return this.occupied;
}//end method

//==SETTERS==

public void setRoomNumber(int roomNumberPassed)
{
Scanner keyboard = new Scanner(System.in);
while ((roomNumberPassed < 1) || (roomNumberPassed > 24))
{
System.out.println("Invalid room number. Must be between 1-24.");
System.out.println("Please enter the room number:");
roomNumberPassed = keyboard.nextInt();
}//end while
this.roomNumber = roomNumberPassed;
}//end method

public void setCapacity(int capacityPassed)
{
Scanner keyboard = new Scanner(System.in);
while ((capacityPassed < 20) || (capacityPassed > 50))
{
System.out.println("Invalid capacity. Must be between 20-50.");
System.out.println("Please enter the room capacity:");
capacityPassed = keyboard.nextInt();
}//end while
this.capacity = capacityPassed;
}//end method

public void setSmart(boolean smartPassed)
{
this.smart = smartPassed;
}//end method

public void setOccupied(boolean occupiedPassed)
{
this.occupied = occupiedPassed;
}//end method

//==toSring METHOD==

public String toString()
{
return
" Room Number: " + this.roomNumber +
" Room Capacity: " + this.capacity +
" Smart Room: " + this.smart +
" Room Occupied: " + this.occupied;
}//end method

//==EQUALS METHOD==

public boolean equals(Room roomPassed)
{
return
this.roomNumber == roomPassed.roomNumber
&&
this.capacity == roomPassed.capacity
&&
this.smart == roomPassed.smart
&&
this.occupied == roomPassed.occupied;
}//end method

}//end class

//RoomReservations.java

import java.util.Scanner;

public class RoomReservations
{
public static void main(String[] args) throws Exception
{
Scanner keyboard = new Scanner(System.in);
int selection, index;
Room[] Reservations =
{
        new Room(1,24,true,false),
new Room(2,35,false,false),
new Room(3,45,true,false),
new Room(4,20,true,false),
new Room(5,33,false,false),
new Room(6,47,false,false),
new Room(7,23,true,false),
new Room(8,36,false,false),
new Room(9,20,false,false),
new Room(10,45,false,false),
new Room(11,34,true,false),
new Room(12,21,false,false),
new Room(13,40,true,false),
new Room(14,50,true,false),
new Room(15,35,false,false),
new Room(16,32,true,false),
new Room(17,25,false,false),
new Room(18,34,false,false),
new Room(19,44,true,false),
new Room(20,50,true,false),
new Room(21,31,false,false),
new Room(22,45,false,false),
new Room(23,28,true,false),
new Room(24,47,true,false)
};//end
  
System.out.println("Welcome to the Room Reservation menu.");
do
{
System.out.println("Please select from the menu below");
System.out.println("Enter 0 to list all rooms");
System.out.println("Enter 1 to list all available rooms");
System.out.println("Enter 2 to list all available smart rooms");
System.out.println("Enter 3 to list all available non-smart rooms ");
System.out.println("Enter 4 to list all available rooms sorted by capacity");
System.out.println("Enter 5 to list all available smart rooms sorted by capacity");
System.out.println("Enter 6 to list all available non-smart rooms sorted by capacity");
System.out.println("Enter 7 to reserve a room");
System.out.println("Enter 8 to cancel a room reservation");
System.out.println("Enter 9 to see menu again");
System.out.println("Enter 99 to quit");
selection = keyboard.nextInt();
  
switch(selection)
{
case 0:
listAllRooms(Reservations);
break;
case 1:
listAvailableRooms(Reservations);
System.out.println("The available rooms are:");
break;
case 2:
listAvailableSmartRooms(Reservations);
System.out.println("The available smart rooms are:");
break;
case 3:
listAvailableNonSmartRooms(Reservations);
System.out.println("The available non-smart rooms are:");
break;   
case 4:
bubbleSortRooms(Reservations);
System.out.println("The available rooms sorted by capacity are:");
break;   
case 5:
bubbleSortSmartRooms(Reservations);
System.out.println("The available smart rooms sorted by capacity are:");
listAllRooms(Reservations);
break;
case 6:
bubbleSortNonSmartRooms(Reservations);
System.out.println("The available non-smart rooms sorted by capacity are:");
listAllRooms(Reservations);
break;
case 7:
reserveRoom(Reservations);
break;   
case 8:
cancelReservation(Reservations);
break;
case 9:
seeMenu(Reservations);
break;   

}//end switch
  
}while(selection != 99);
  
}//end main

//==METHODS==

public static void listAllRooms(Room[] arrayPassed)
{
for(Room x: arrayPassed)
System.out.println(x.toString());
}//end listAllRooms

public static void listAvailableRooms(Room[] arrayPassed)
{
for(Room x: arrayPassed)
if (getOccupied() == false)
{
System.out.println(x.toString());
}//end if
}//end for loop
}//end listAvailableRooms

public static void listAvailableSmartRooms(Room[] arrayPassed)
{
for(Room x: arrayPassed)
{
if ((getSmart() == true) && (getOccupied() == false))
{
System.out.println(x.toString());
}//end if
}//end for loop
}//end listAvailableSmartRooms

public static void listAvailableNonSmartRooms(Room[] arrayPassed)
{
for(Room x: arrayPassed)
{
if ((getSmart() == false) && (getOccupied() == false))
{
System.out.println(x.toString());
}//end if
}//end for
}//end listAvailableNonSmartRooms

public static void bubbleSortRoomByCapacity(Room[] x)
{
int n = x.length;
Room temp;
for(int pass = 1; pass < n; ++pass)
{
for(int i = 0; i < n - pass; ++i)
{
if(x[i].getCapacity() > x[i + 1].getCapacity())
{
temp = x[i];
x[i] = x[i + 1];
x[i + 1] = temp;
}//end if   
}//end inner loop
}//end outer for loop
}//end method bubbleSortRoomByCapacity
  
}//end class

Explanation / Answer

Hello there,

Please find below code and it's output:Kindly note here " See menu again K" is not required to implement here. Let me know if you have any other queries. Thanks.

//RoomReservations.java
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Scanner;

public class RoomReservations {
   static Scanner keyboard = new Scanner(System.in);

   public static void main(String[] args) throws Exception {
       int selection, index;
       Room[] Reservations = { new Room(1, 24, true, false), new Room(2, 35, false, false), new Room(3, 45, true, false),
               new Room(4, 20, true, false), new Room(5, 33, false, false), new Room(6, 47, false, false), new Room(7, 23, true, false),
               new Room(8, 36, false, false), new Room(9, 20, false, false), new Room(10, 45, false, false),
               new Room(11, 34, true, false), new Room(12, 21, false, false), new Room(13, 40, true, false),
               new Room(14, 50, true, false), new Room(15, 35, false, false), new Room(16, 32, true, false),
               new Room(17, 25, false, false), new Room(18, 34, false, false), new Room(19, 44, true, false),
               new Room(20, 50, true, false), new Room(21, 31, false, false), new Room(22, 45, false, false),
               new Room(23, 28, true, false), new Room(24, 47, true, false) };// end

       System.out.println("Welcome to the Room Reservation menu.");
       do {
           System.out.println("Please select from the menu below");
           System.out.println("Enter 0 to list all rooms");
           System.out.println("Enter 1 to list all available rooms");
           System.out.println("Enter 2 to list all available smart rooms");
           System.out.println("Enter 3 to list all available non-smart rooms ");
           System.out.println("Enter 4 to list all available rooms sorted by capacity");
           System.out.println("Enter 5 to list all available smart rooms sorted by capacity");
           System.out.println("Enter 6 to list all available non-smart rooms sorted by capacity");
           System.out.println("Enter 7 to reserve a room");
           System.out.println("Enter 8 to cancel a room reservation");
           System.out.println("Enter 9 to see menu again");
           System.out.println("Enter 99 to quit");
           selection = keyboard.nextInt();

           switch (selection) {
           case 0:
               listAllRooms(Reservations);
               break;
           case 1:
               listAvailableRooms(Reservations);
               System.out.println("The available rooms are:");
               break;
           case 2:
               listAvailableSmartRooms(Reservations);
               System.out.println("The available smart rooms are:");
               break;
           case 3:
               listAvailableNonSmartRooms(Reservations);
               System.out.println("The available non-smart rooms are:");
               break;
           case 4:
               bubbleSortRooms(Reservations);
               System.out.println("The available rooms sorted by capacity are:");
               break;
           case 5:
               Room[] smartRooms = bubbleSortSmartRooms(Reservations);
               System.out.println("The available smart rooms sorted by capacity are:");
               listAllRooms(smartRooms);
               break;
           case 6:
               Room[] nonSmartRooms = bubbleSortNonSmartRooms(Reservations);
               System.out.println("The available non-smart rooms sorted by capacity are:");
               listAllRooms(nonSmartRooms);
               break;
           case 7:
               reserveRoom(Reservations);
               break;
           case 8:
               cancelReservation(Reservations);
               break;
           case 9:
               seeMenu(Reservations);
               break;

           }// end switch

       } while (selection != 99);

   }// end main

   // ==METHODS==

   private static void seeMenu(Room[] x) {
       // TODO Auto-generated method stub

   }

   private static void cancelReservation(Room[] x) {
       System.out.println("Enter room Number to cancel reservation: ");
       int roomNumber = keyboard.nextInt();
       for (int i = 0; i < x.length; i++) {
           if (x[i].getRoomNumber() == roomNumber) {
               x[i].setOccupied(false);
               System.out.println("Reservation cancelled for =====================================" + x[i].toString()+" ===================================== ");

               break;
           }
       }

   }

   private static void reserveRoom(Room[] x) {
       System.out.println("Enter room Number to reserve: ");
       int roomNumber = keyboard.nextInt();
       for (int i = 0; i < x.length; i++) {
           if (x[i].getRoomNumber() == roomNumber) {
               x[i].setOccupied(true);
               System.out.println(" ====================================="+x[i].toString() + " ===================================== is Reserved.");

               break;
           }
       }

   }

   public static void removeElement(Room[] a, int del) {
       System.arraycopy(a, del + 1, a, del, a.length - 1 - del);
   }

   private static Room[] bubbleSortNonSmartRooms(Room[] x) {
       Room[] nonSmartRooms = new Room[x.length];
       int index = 0;
       for (int i = 0; i < x.length; i++) {
           if (!x[i].getSmart()) {
               nonSmartRooms[index] = x[i];
               index++;
           }
       }
       nonSmartRooms = clean(nonSmartRooms); // Remove null entries from last.
       int n = nonSmartRooms.length;
       Room temp;
       for (int pass = 1; pass < n; ++pass) {
           for (int i = 0; i < n - pass; ++i) {
               if (nonSmartRooms[i].getCapacity() > nonSmartRooms[i + 1].getCapacity()) {
                   temp = nonSmartRooms[i];
                   nonSmartRooms[i] = nonSmartRooms[i + 1];
                   nonSmartRooms[i + 1] = temp;

               }// end if
           }// end inner loop
       }// end outer for loop
       return nonSmartRooms;
   }

   private static Room[] bubbleSortSmartRooms(Room[] x) {
       Room[] smartRooms = new Room[x.length];
       int index = 0;
       for (int i = 0; i < x.length; i++) {
           if (x[i].getSmart()) {
               smartRooms[index] = x[i];
               index++;
           }
       }
       smartRooms = clean(smartRooms); // Remove null entries from last.
       int n = smartRooms.length;
       Room temp;
       for (int pass = 1; pass < n; ++pass) {
           for (int i = 0; i < n - pass; ++i) {
               if (smartRooms[i].getCapacity() > smartRooms[i + 1].getCapacity()) {
                   temp = smartRooms[i];
                   smartRooms[i] = smartRooms[i + 1];
                   smartRooms[i + 1] = temp;

               }// end if
           }// end inner loop
       }// end outer for loop
       return smartRooms;
   }

   private static void bubbleSortRooms(Room[] x) {
       // TODO Auto-generated method stub

   }

   public static void listAllRooms(Room[] arrayPassed) {
       for (Room x : arrayPassed)
           System.out.println(x.toString());
   }// end listAllRooms

   public static void listAvailableRooms(Room[] arrayPassed) {
       for (Room x : arrayPassed)
           if (x.getOccupied() == false) {
               System.out.println(x.toString());
           }// end if
   }// end for loop//end listAvailableRooms

   public static void listAvailableSmartRooms(Room[] arrayPassed) {
       for (Room x : arrayPassed) {
           if ((x.getSmart() == true) && (x.getOccupied() == false)) {
               System.out.println(x.toString());
           }// end if
       }// end for loop
   }// end listAvailableSmartRooms

   public static void listAvailableNonSmartRooms(Room[] arrayPassed) {
       for (Room x : arrayPassed) {
           if ((x.getSmart() == false) && (x.getOccupied() == false)) {
               System.out.println(x.toString());
           }// end if
       }// end for
   }// end listAvailableNonSmartRooms

   public static Room[] clean(final Room[] v) {
       List<Room> list = new ArrayList<Room>(Arrays.asList(v));
       list.removeAll(Collections.singleton(null));
       return list.toArray(new Room[list.size()]);
   }

   public static void bubbleSortRoomByCapacity(Room[] x) {
       int n = x.length;
       Room temp;
       for (int pass = 1; pass < n; ++pass) {
           for (int i = 0; i < n - pass; ++i) {
               if (x[i].getCapacity() > x[i + 1].getCapacity()) {
                   temp = x[i];
                   x[i] = x[i + 1];
                   x[i + 1] = temp;
               }// end if
           }// end inner loop
       }// end outer for loop
   }// end method bubbleSortRoomByCapacity

}// end class

====O/P===

Welcome to the Room Reservation menu.
Please select from the menu below
Enter 0 to list all rooms
Enter 1 to list all available rooms
Enter 2 to list all available smart rooms
Enter 3 to list all available non-smart rooms
Enter 4 to list all available rooms sorted by capacity
Enter 5 to list all available smart rooms sorted by capacity
Enter 6 to list all available non-smart rooms sorted by capacity
Enter 7 to reserve a room
Enter 8 to cancel a room reservation
Enter 9 to see menu again
Enter 99 to quit
1

Room Number: 1
Room Capacity: 24
Smart Room: true
Room Occupied: false

Room Number: 2
Room Capacity: 35
Smart Room: false
Room Occupied: false

Room Number: 3
Room Capacity: 45
Smart Room: true
Room Occupied: false

Room Number: 4
Room Capacity: 20
Smart Room: true
Room Occupied: false

Room Number: 5
Room Capacity: 33
Smart Room: false
Room Occupied: false

Room Number: 6
Room Capacity: 47
Smart Room: false
Room Occupied: false

Room Number: 7
Room Capacity: 23
Smart Room: true
Room Occupied: false

Room Number: 8
Room Capacity: 36
Smart Room: false
Room Occupied: false

Room Number: 9
Room Capacity: 20
Smart Room: false
Room Occupied: false

Room Number: 10
Room Capacity: 45
Smart Room: false
Room Occupied: false

Room Number: 11
Room Capacity: 34
Smart Room: true
Room Occupied: false

Room Number: 12
Room Capacity: 21
Smart Room: false
Room Occupied: false

Room Number: 13
Room Capacity: 40
Smart Room: true
Room Occupied: false

Room Number: 14
Room Capacity: 50
Smart Room: true
Room Occupied: false

Room Number: 15
Room Capacity: 35
Smart Room: false
Room Occupied: false

Room Number: 16
Room Capacity: 32
Smart Room: true
Room Occupied: false

Room Number: 17
Room Capacity: 25
Smart Room: false
Room Occupied: false

Room Number: 18
Room Capacity: 34
Smart Room: false
Room Occupied: false

Room Number: 19
Room Capacity: 44
Smart Room: true
Room Occupied: false

Room Number: 20
Room Capacity: 50
Smart Room: true
Room Occupied: false

Room Number: 21
Room Capacity: 31
Smart Room: false
Room Occupied: false

Room Number: 22
Room Capacity: 45
Smart Room: false
Room Occupied: false

Room Number: 23
Room Capacity: 28
Smart Room: true
Room Occupied: false

Room Number: 24
Room Capacity: 47
Smart Room: true
Room Occupied: false
The available rooms are:
Please select from the menu below
Enter 0 to list all rooms
Enter 1 to list all available rooms
Enter 2 to list all available smart rooms
Enter 3 to list all available non-smart rooms
Enter 4 to list all available rooms sorted by capacity
Enter 5 to list all available smart rooms sorted by capacity
Enter 6 to list all available non-smart rooms sorted by capacity
Enter 7 to reserve a room
Enter 8 to cancel a room reservation
Enter 9 to see menu again
Enter 99 to quit
7
Enter room Number to reserve:
24

=====================================
Room Number: 24
Room Capacity: 47
Smart Room: true
Room Occupied: true
=====================================
is Reserved.
Please select from the menu below
Enter 0 to list all rooms
Enter 1 to list all available rooms
Enter 2 to list all available smart rooms
Enter 3 to list all available non-smart rooms
Enter 4 to list all available rooms sorted by capacity
Enter 5 to list all available smart rooms sorted by capacity
Enter 6 to list all available non-smart rooms sorted by capacity
Enter 7 to reserve a room
Enter 8 to cancel a room reservation
Enter 9 to see menu again
Enter 99 to quit
8
Enter room Number to cancel reservation:
24
Reservation cancelled for
=====================================
Room Number: 24
Room Capacity: 47
Smart Room: true
Room Occupied: false
=====================================

Please select from the menu below
Enter 0 to list all rooms
Enter 1 to list all available rooms
Enter 2 to list all available smart rooms
Enter 3 to list all available non-smart rooms
Enter 4 to list all available rooms sorted by capacity
Enter 5 to list all available smart rooms sorted by capacity
Enter 6 to list all available non-smart rooms sorted by capacity
Enter 7 to reserve a room
Enter 8 to cancel a room reservation
Enter 9 to see menu again
Enter 99 to quit
1

Room Number: 1
Room Capacity: 24
Smart Room: true
Room Occupied: false

Room Number: 2
Room Capacity: 35
Smart Room: false
Room Occupied: false

Room Number: 3
Room Capacity: 45
Smart Room: true
Room Occupied: false

Room Number: 4
Room Capacity: 20
Smart Room: true
Room Occupied: false

Room Number: 5
Room Capacity: 33
Smart Room: false
Room Occupied: false

Room Number: 6
Room Capacity: 47
Smart Room: false
Room Occupied: false

Room Number: 7
Room Capacity: 23
Smart Room: true
Room Occupied: false

Room Number: 8
Room Capacity: 36
Smart Room: false
Room Occupied: false

Room Number: 9
Room Capacity: 20
Smart Room: false
Room Occupied: false

Room Number: 10
Room Capacity: 45
Smart Room: false
Room Occupied: false

Room Number: 11
Room Capacity: 34
Smart Room: true
Room Occupied: false

Room Number: 12
Room Capacity: 21
Smart Room: false
Room Occupied: false

Room Number: 13
Room Capacity: 40
Smart Room: true
Room Occupied: false

Room Number: 14
Room Capacity: 50
Smart Room: true
Room Occupied: false

Room Number: 15
Room Capacity: 35
Smart Room: false
Room Occupied: false

Room Number: 16
Room Capacity: 32
Smart Room: true
Room Occupied: false

Room Number: 17
Room Capacity: 25
Smart Room: false
Room Occupied: false

Room Number: 18
Room Capacity: 34
Smart Room: false
Room Occupied: false

Room Number: 19
Room Capacity: 44
Smart Room: true
Room Occupied: false

Room Number: 20
Room Capacity: 50
Smart Room: true
Room Occupied: false

Room Number: 21
Room Capacity: 31
Smart Room: false
Room Occupied: false

Room Number: 22
Room Capacity: 45
Smart Room: false
Room Occupied: false

Room Number: 23
Room Capacity: 28
Smart Room: true
Room Occupied: false

Room Number: 24
Room Capacity: 47
Smart Room: true
Room Occupied: false
The available rooms are:
Please select from the menu below
Enter 0 to list all rooms
Enter 1 to list all available rooms
Enter 2 to list all available smart rooms
Enter 3 to list all available non-smart rooms
Enter 4 to list all available rooms sorted by capacity
Enter 5 to list all available smart rooms sorted by capacity
Enter 6 to list all available non-smart rooms sorted by capacity
Enter 7 to reserve a room
Enter 8 to cancel a room reservation
Enter 9 to see menu again
Enter 99 to quit
5
The available smart rooms sorted by capacity are:

Room Number: 4
Room Capacity: 20
Smart Room: true
Room Occupied: false

Room Number: 7
Room Capacity: 23
Smart Room: true
Room Occupied: false

Room Number: 1
Room Capacity: 24
Smart Room: true
Room Occupied: false

Room Number: 23
Room Capacity: 28
Smart Room: true
Room Occupied: false

Room Number: 16
Room Capacity: 32
Smart Room: true
Room Occupied: false

Room Number: 11
Room Capacity: 34
Smart Room: true
Room Occupied: false

Room Number: 13
Room Capacity: 40
Smart Room: true
Room Occupied: false

Room Number: 19
Room Capacity: 44
Smart Room: true
Room Occupied: false

Room Number: 3
Room Capacity: 45
Smart Room: true
Room Occupied: false

Room Number: 24
Room Capacity: 47
Smart Room: true
Room Occupied: false

Room Number: 14
Room Capacity: 50
Smart Room: true
Room Occupied: false

Room Number: 20
Room Capacity: 50
Smart Room: true
Room Occupied: false
Please select from the menu below
Enter 0 to list all rooms
Enter 1 to list all available rooms
Enter 2 to list all available smart rooms
Enter 3 to list all available non-smart rooms
Enter 4 to list all available rooms sorted by capacity
Enter 5 to list all available smart rooms sorted by capacity
Enter 6 to list all available non-smart rooms sorted by capacity
Enter 7 to reserve a room
Enter 8 to cancel a room reservation
Enter 9 to see menu again
Enter 99 to quit
6
The available non-smart rooms sorted by capacity are:

Room Number: 9
Room Capacity: 20
Smart Room: false
Room Occupied: false

Room Number: 12
Room Capacity: 21
Smart Room: false
Room Occupied: false

Room Number: 17
Room Capacity: 25
Smart Room: false
Room Occupied: false

Room Number: 21
Room Capacity: 31
Smart Room: false
Room Occupied: false

Room Number: 5
Room Capacity: 33
Smart Room: false
Room Occupied: false

Room Number: 18
Room Capacity: 34
Smart Room: false
Room Occupied: false

Room Number: 2
Room Capacity: 35
Smart Room: false
Room Occupied: false

Room Number: 15
Room Capacity: 35
Smart Room: false
Room Occupied: false

Room Number: 8
Room Capacity: 36
Smart Room: false
Room Occupied: false

Room Number: 10
Room Capacity: 45
Smart Room: false
Room Occupied: false

Room Number: 22
Room Capacity: 45
Smart Room: false
Room Occupied: false

Room Number: 6
Room Capacity: 47
Smart Room: false
Room Occupied: false
Please select from the menu below
Enter 0 to list all rooms
Enter 1 to list all available rooms
Enter 2 to list all available smart rooms
Enter 3 to list all available non-smart rooms
Enter 4 to list all available rooms sorted by capacity
Enter 5 to list all available smart rooms sorted by capacity
Enter 6 to list all available non-smart rooms sorted by capacity
Enter 7 to reserve a room
Enter 8 to cancel a room reservation
Enter 9 to see menu again
Enter 99 to quit

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote