Package HotelReservationSystem
Class HRS
java.lang.Object
HotelReservationSystem.HRS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
createHotel
(String hotelName, int type, int count) GUI for creating hotelvoid
createHotel
(Scanner sc) User I/O for creating a hotelfetchHotel
(String name) returns the hotel given the name of the hotelGetter for the ArrayList of hotels in the HotelReservationSystem.HRSint
Method that simplifies input handling for integer inputsdouble
getInputDBL
(Scanner sc) Method that simplifies input handling for double inputsvoid
manageHotel
(Scanner sc) User I/O for managing a hotelvoid
Sets the hotels in the ArrayList of Hotelvoid
Lists the hotels with their number of roomsvoid
showMenu()
Shows the main menu of the programvoid
simBooking
(Scanner sc) User I/O for booking simulationverifyDiscount
(String code) Verifies the discount code entered by the uservoid
User I/O for viewing the details of a hotel
-
Constructor Details
-
HRS
public HRS()Constructor for the Hotel Reservation System
-
-
Method Details
-
getHotels
-
setHotels
-
getInput
Method that simplifies input handling for integer inputs- Parameters:
sc
- Scanner object- Returns:
- the scanned input of type int
-
getInputDBL
Method that simplifies input handling for double inputs- Parameters:
sc
- Scanner object- Returns:
- the scanned input of type double
-
fetchHotel
-
showHotels
public void showHotels()Lists the hotels with their number of rooms -
createHotel
User I/O for creating a hotel- Parameters:
sc
- the scanner object
-
createHotel
GUI for creating hotel- Parameters:
hotelName
- the name of the hoteltype
- the type of rooms to create the hotel at the startcount
- the number of rooms to create with the hotel
-
viewHotel
User I/O for viewing the details of a hotel- Parameters:
sc
- Scanner object
-
manageHotel
-
simBooking
-
showMenu
public void showMenu()Shows the main menu of the program -
verifyDiscount
-