This project implements different classes for a hotel management system in Java.
The code assumes hotel rooms are booked for the month of June, 2022. Therefore the checkin and checkout dates should be in that range.
There are 3 types of rooms to choose from and the system either books a room if available, or prompts the user for different selection.
To execute try the following (user inputs are in bold):
Welcome to Bookings.com! Enter check-in Date for June-2022 (yyyy-MM-dd): 2022-06-02
Enter check-out Date for June-2022 (yyyy-MM-dd): 2022-06-06
- View Room Types and prices
- View Room Availibility
- Book Room
- Change Dates 0: Exit
Enter option: 1
Basic Room Details cost : $500 capcity: 3
Delux Room Details cost : $1000 capcity: 5
Suit Room Details cost : $5000 capcity: 6
- View Room Types and prices
- View Room Availibility
- Book Room
- Change Dates 0: Exit
Enter option: 2
Enter room type to view availibility: 1:BASIC 2:DELUX 3:SUIT 1
This room is available. Do you want to book it now? (y) y
Congratulation room booked!
Enter option: 3
Enter room type to book: 1:BASIC 2:DELUX 3:SUIT 1
Oops! This room type is fully booked. Try another date or roomtype