You are on page 1of 6

Lab: 5

Design and Implementation

E-R Diagram:
Database Design:
Use Case Diagram For User:

Register

Login

Check availability

reserve room

User

Display room details

Cancel rooms

Logout

Sequence Diagram for User:


Register login Check availability Reserve room Display room details Cancel Logout

: User
1 : Register()

2 : Login with username and password()

3 : Invalid username and password()

4 : Check the availability of rooms()

5 : list of rooms available()

6 : reserve a room()

7 : Display the details about reservation()

8 : Cancellation of room()

9 : Log out()
Activity Diagram for User:

Login

Verification of username and password

Invalid username and password

Display reserved room details Cancel room


check availability

reserve room

Display details

logout
Use Case Diagram for Administrator:

Login

Display Information
Administrator

Log out

Sequence Diagram for Administrator:

Login Display

: Administrator
1 : Enter Username and password()

2 : Validate()

3 : Invalid Username()

4 : Display reserved rooms for the current day()

5 : Display rooms reserved for the coming days()

6 : Logout()
Activity Diagram for Administrator:

Login

Verification of username and password

no
Invalid username and password

yes

display the reserved room details

logout

Class Diagram for the System:

User

administrator +Username: string


+Password: string
+Username: String +ID: integer
+Password: string
+register()
+Login() 1 1..* +login()
+Display() +check_availability()
+Logout() +reserve_room()
+cancel_room()
+logout()

You might also like