Question: You are assisting a team developing software for booking a hotel room. The passage below describes describes a system which controls the hotel rooms. Draw

You are assisting a team developing software for booking a hotel room. The passage below describes describes a system which controls the hotel rooms. Draw a state machine diagram for a hotel room to help the team understand the requirements for the system, based on this description.

  1. The system is designed to allow customers to conveniently book for a table in a restaurant for a specific time.

  2. When a table is added to the system, it becomes available for all customers to book.

  3. When a customer books a table, customer can select to pay a booking fee immediately or just pay when they finish the meal.

  4. If the customer pays the fee immediately, the table is reserved for the customer for the time

  5. If the customer chooses to pay at the restaurant, a sales representative contacts the customer to verify the customer's information. If the verification is successful, the table is reserved for the customer. If the sales representative cannot verify the customer on the first time, the table is flagged as Need Immediate Contact. The sales representative will contact the customer again, and if they are not successful, the table will become available for all customers to book. If the verification is successful, the table is reserved for the customer for the time.

  6. At any stage, if the manager needs to disallow booking on a table for a given time (change to business hours, shortage of staff...), the table will be flagged as Unavailable. The table becomes unavailable for any customer to book. If there is a reservation on the table at the time, the customer is refunded.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related General Management Questions!