Traditional Culture Encyclopedia - Travel guide - A company wants to develop a hotel management system. The hotel can open 10 double rooms and 10 single rooms to the outside world.

A company wants to develop a hotel management system. The hotel can open 10 double rooms and 10 single rooms to the outside world.

Use case diagram

Use case specification

1 Brief description

This use case allows customers to book unbooked rooms in a hotel and the system provides unbooked rooms.

Information list of booked rooms.

2 Event flow

1. Basic event flow

The customer selects the type of room to book, double room or single room.

Based on the room type selected by the customer, filter out unbooked rooms from all rooms of this type and display the information list of these rooms for customers to query.

The customer selects the room and enters the number of days to reserve.

2. Alternative event flow

If all the rooms of the type required by the customer have been booked, the customer will be prompted that all the rooms of this type have been booked and the customer will be asked whether to choose another type of room. .

If the time period of the room selected by the user to book conflicts with the time period of other customers who have booked the room, the system will prompt the dates on which the room has been booked and ask the current customer whether to change the room or modify the reservation. Number of days.

Use Case Scenario

Customer selects the type of room to book, Double or Single.

According to the room type selected by the customer, filter out unbooked rooms from all rooms of this type and display the information list of these rooms for customers to query.

The customer selects the room and enters the number of days to book.

If all the rooms of the type required by the customer have been booked, the customer is prompted that the rooms of this type have been all booked and the customer is asked whether to choose another type of room.

If the time period of the room selected by the user to book conflicts with the time period of other customers who have booked the room, the system will prompt the dates on which the room has been booked and ask the current customer whether to change the room or modify the reservation. Number of days.

4. Preconditions

The customer enters the hotel management system and selects the room reservation function.

5. Post-conditions

After the customer selects the room and the number of reservation days and confirms it, the system requires the customer to enter customer information including the customer's name, address, contact number, and valid ID number. In addition, the system will calculate the deposit and total fees that the customer needs to pay and display them.

If the customer reselects the room type or changes the number of days, the user interface will be refreshed