Admin username – admin
Admin password – admin123



Key Features –

  1. Menu with 5 options –

    • Login
    • Admin Login
    • SignUp
    • Book Hotel
    • Exit
  2. Login –

    • Username – error if wrong username input, asks to try again
    • Password – error if wrong password input, asks to try again
    • Opens booking interface
  3. Admin Login –

    • Username – error if wrong username input, asks to try again
    • Password – error if wrong password input, asks to try again
    • Admin Menu –
      • Add City
      • Add Hotel
      • Check Booking history
      • Exit
    • Add City –
      • Enter city name – error if city already exists, asks if to add hotel or exit
      • Enter number of hotels – error if wrong input, such as anything other than int, asks to retry
      • Enter hotel name
      • Enter no of room type - error if wrong input, such as anything other than int, asks to retry
      • Enter room type
      • Enter no of rooms
      • Enter price
      • Back to admin menu
    • Add Hotel –
      • Enter city name
      • Enter number of hotels – error if wrong input, such as anything other than int, asks to retry
      • Enter hotel name
      • Enter no of room type - error if wrong input, such as anything other than int, asks to retry
      • Enter room type
      • Enter no of rooms
      • Enter price
      • Back to admin menu
    • Check Booking History –
      • Enter username – error if no username with input exists, asks to retry
      • Back to Admin menu

    • Exit – back to Main Menu
  4. SignUp –

    • Enter name
    • Enter username – error if username already exists, asks to retry
    • Enter password
    • Enter DOB – error, if input date format is wrong or illegal date is entered (YYYY-MM-DD)
    • Enter mobile number
    • Enter email
    • Opens booking interface
  5. Book Hotel –

    • Enter city – error, if city database doesn’t exists, asks choices
    • Select hotel – error, if wrong input entered, asks to retry
    • Select room type - error, if wrong input entered, asks to retry
    • Enter no of rooms – error, if wrong input or input is larger than required
    • Enter check in date – error, if wrong date format or illegal dates or date before current date
    • Enter check out date - error, if wrong date format or illegal dates entered
    • Confirm booking – error if wrong input, asks to retry
      • Yes – confirms booking, opens Main Menu List
        • No –
        • City – opens city interface
        • Exit – Main Menu
  6. Exit – exits the program