Sie sind auf Seite 1von 6

Assignment No.

01 (Graded) Total Marks: 20


SEMESTER FALL 2019 Due Date: 15-11-2019
CS304- Object Oriented Programming

BC 160404595

Problem Statement:
PSL (Pakistan Super League) is played every year. This league contains at least 4-5 franchises and each franchise
has a team. There are many sponsors which sponsor each franchise. Each team is composed of 10-15 players.
One of the players is the captain of the team. A coach is also allocated to each team. One coach can serve only
one team at a time. Coaches, captain and players are common persons each having different characteristics.
Different games are played between the teams and each game has its venue and date.

Draw an Object Model (Class Diagram) for the given scenario showing main objects, their attributes, functions and
relationships.

The tasks you have to do are:


1. Extract the main objects (entities) of above system.

Following are the main objects in statement


a. PSL
b. Franchises
c. Team
d. Sponsors
e. Players
f. Captain
g. Coach
h. Game

2. Find the necessary attributes and functions that need to be associated with each object.
Pakistan Super League
Attributes
a. Name
b. Duration
c. Schedule

Function
a. Make Policies for Game
b. Manage Matches

Franchises
Attributes
a. Name
b. Region
c. Owner

Function
a. Hire a Team

Team
Attributes
a. Name
b. No of players
c. National or International Ranking
d. Goodwill

Function
a. Competition

Sponsors
Attributes
a. Name
b. Creditability
c. Company or Organization

Function
a. Providing Finance

Players
Attributes
a. Name
b. Age
c. Hight
d. Color
e. Language
f. Action
g. Bating / Bowling
h. Score
i. Ranking
j. World Records

Function
a. Play the Game
b. Bating
c. Bowling
d. Fielding
e. Wicket Keeping

Captain
Attributes
a. Name
b. Hight
c. Color
d. Language
e. Age
f. Action
g. Bating / Bowling
h. Score
i. Ranking
j. Moral
k. World Records
Function
a. Play Game
b. Guide the players
c. Keep high moral
d. Work like connecting hub

Coach
a. Name
b. Hight
c. Color
d. Language
e. Age
f. Score
g. Ranking
h. World Records

Function
a. Guide how to bowl / bat and field
b. Makes strategy
c. Points the positive and negitive

Game
Attributes
a. Name
b. Rule
c. Duration
d. Ground

Function
a. Location
b. Audience
c. Time
d. Date
e. Venue

3. Identify the relationships among identified objects.


Association Relation Between League And Franchise
Aggregation Relation Between Franchise And Team
Association Relation Between Sponsor And Franchise
Composition Relation Between Team And Player
Association Relation Between Coach And Team
Association Relation Between Game And Team
Inheritance Relation Between Person And Coaches, Captain And Players
4. Construct a final comprehensive Class diagram showing all objects and their relationships along with
their attributes and functions.
Important things to consider:

1. As happens in real world that everyone visualizes a problem in a different way so the solutions of all
students may vary based upon their own thinking.

2. You have to use standard UML notations for objects, classes, and their associations.
3. You have to use all concepts studied so far like abstraction, encapsulation, inheritance, association,
generalization, and specialization wherever applicable.
Hint:
1. Besides problem statement; objects, properties, and functions of a system can also be extracted from domain
knowledge.

Solution Uploading instructions


o For clarity and simplicity, you are required to Upload/Submit only .DOC/.DOCX file
o Copy/Paste your class diagram in your final MS Word (.doc) file if you are using any drawing tool
(MS Paint, MS Visio etc.). Images submitted as solution files will not be accepted.

NOTE:
Do not put any query on MDB about this assignment, if you have any query then email at cs304@vu.edu.pk.
Furthermore, if any student found cheating from any other student or from online forums then he/she will be
awarded ZERO right away and strict disciplinary action will be taken against the student.

Lectures Covered: This assignment covers Lecture # 1-6


Deadline: Your assignment must be uploaded/submitted within due date i.e. 15th November, 2019.

Das könnte Ihnen auch gefallen