Professional Documents
Culture Documents
CS403 Assignment No 1
CS403 Assignment No 1
CS403 Assignment No 1
Assignment No 01
BC210202381
Usman Ali
Watching a live cricket game is always a thrilling experience for the cricket lovers. To watch a
live game, spectators have to book tickets first. As no. of spectators is usually large for live cricket
event, so people coming to watch a match in the stadium may face the parking issue.
Stadium tickets booking system is an online system to book the tickets and parking slot. The
seating area reserved for spectators/users in the cricket stadium is divided into different blocks such as
red, green, blue, yellow, purple, orange and white. Each block is divided into sections; A, B, C and so
on. Number of seats may vary in each block. The blocks are of two types; VIP blocks and General
Blocks. VIP blocks have some extra facilities for the Spectators and mostly reserved for the VIPs. The
charges of VIP blocks are higher than General blocks.
Stadium has a schedule of matches. Users can check stadium information and matches schedule
and hence can book tickets as per requirement for a particular match in any section of any block. The
user has to provide required information to book a ticket. One user can buy maximum 10 tickets per
match. After a successful booking, a unique booking number will be shared with the user. Users can
also book the parking slot for which they will be charged some fixed amount based upon vehicle type.
Payments will be transferred online or at the stadium booking office using the booking number.
Consider above scenario and perform following tasks:
1. Cricket Stadium
2. Spectator/User
3. Ticket
4. Parking slot
5. Block
6. Section
7. Match
8. VIP Block
9. General Block
Identify super types and subtypes entities.
1. Block
- Super type: Block
- Sub types: VIP Block, General Block
2. Spectators/Users:
- Super type: Spectators/Users
- Subtypes: VIP spectators/Users, General Spectators/Users
3. Tickets:
- Super type: Tickets
- Subtypes: VIP Tickets, General Tickets
Identify at least 3 attributes of simple and super type entities, one specialized attribute for
sub type entities.
2. Spectator/User
3. Ticket
1. Spectator/User-Tickets
- Minimum cardinality: 1
- Maximum cardinality: 1
6. One ticket can be associated with only one block and one section
- Minimum cardinality: 1
- Maximum cardinality: 1
- Minimum cardinality: 1
- Maximum cardinality: 1
8. One Booking Office can be associated with Multiple cricket Stadiums.
- Minimum cardinality: 1
- Maximum cardinality: Many
Task No. 02 (Solution):
You will have to make a final comprehensive Entity Relationship Diagram (ERD) of the
system showing all entities, super type, and sub type entities, their attributes and
relationships identified in Task 1.
Your ERD must show all minimum and maximum cardinalities clearly.