Git Product home page Git Product logo

hotelreservation's Introduction

HotelReservation - A Java project for hotel reservation management

This is a java application for booking hotel rooms which I developed for the Udacity's Java Programming Course. The goal was to create a hotel application which allows users to book and manage room reservations. The project emphasizes the use of Java programming language for practicing and elevating fundamental skills as a Java developer.

You may run the project by executing the HotelApplication class on your favorite Java IDEA.

hotel_reservation

User Scenarios

The application provides four user scenarios:

  1. Creating a customer account: The user needs to first create a customer account before they can create a reservation.

  2. Searching for rooms: The app should allow the user to search for available rooms based on provided checkin and checkout dates. If the application has available rooms for the specified date range, a list of the corresponding rooms will be displayed to the user for choosing.

  3. Booking a room: Once the user has chosen a room, the app will allow them to book the room and create a reservation.

  4. Viewing reservations: After booking a room, the app allows customers to view a list of all their reservations.

Admin Scenarios

The application provides four administrative scenarios:

  1. Displaying all customers accounts.
  2. Viewing all of the rooms in the hotel.
  3. Viewing all of the hotel reservations.
  4. Adding a room to the hotel application.

Reserving a Room

The application allows customers to reserve a room. Here are the specifics:

  1. Avoid conflicting reservations: A single room may only be reserved by a single customer per a checkin and checkout date range.
  2. Search for recommended rooms: If there are no available rooms for the customer's date range, a search will be performed that displays recommended rooms on alternative dates. The recommended room search will add seven days to the original checkin and checkout dates to see if the hotel has any availabilities, and then display the recommended rooms/dates to the customer.

Example: If the customers date range search is 1/1/2020 – 1/5/2020 and all rooms are booked, the system will search again for recommended rooms using the date range 1/8/2020 - 1/12/2020. If there are no recommended rooms, the system will not return any rooms.

Room Requirements

Room cost: Rooms will contain a price per night. When displaying rooms, paid rooms will display the price per night and free rooms will display "Free" or have a $0 price. Unique room numbers: Each room will have a unique room number, meaning that no two rooms can have the same room number. Room type: Rooms can be either single occupant or double occupant (Enumeration: SINGLE, DOUBLE).

Customer Requirements

The application will have customer accounts. Each account has:

  1. A unique email for the customer: RegEx is used to check that the email is in the correct format (i.e., [email protected]).
  2. A first name and last name.
  3. The email RegEx is simple for the purpose of this exercise and may not cover all real-world valid emails.

For example "[email protected]" would not be accepted by the above RegEx because it does end with ".com". If you would like to try to make your RegEx more sophisticated, you may—but it is not required for this project.

Error Requirements

The hotel reservation application handles all exceptions gracefully (user inputs included), meaning:

  1. No crashing: The application does not crash based on user input.
  2. No unhandled exceptions: The app has try and catch blocks that are used to capture exceptions and provide useful information to the user. There are no unhandled exceptions.

hotelreservation's People

Contributors

tugcegulsanusta avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.