CS304P - Lab Exercises
CS304P - Lab Exercises
You have to solve the given problem statement by yourself. First read it carefully and try to
solve it. There is no need to copy it from anywhere or to solve it in the group. Try to analyze
yourself. There are no marks for this activity. It is only for your own understanding. In the
coming lab, we are going to perform this lab, we will discuss your solution, and try to find out
the mistakes.
Lab 01
Problem Statement
Consider the following scenario and identify all objects, their attributes and behaviors.
In Virtual University bookshop, the handouts of all courses are provided at reasonable price.
The handouts are made in accordance with the video lectures recorded by famous professors. It
is a step to facilitate students to easily digest the course contents.
Solution:
Object Attribute Behaviors
Update inventory
Payment collection
Order status
Edition Write
Price Share
Grading scheme
No. of lectures
Course content
Duration Upload
Quality Download
Type Stop
caption Pause
Forward
Reverse
Increase_speed
Decrease_speed
Increase_volume
Decrease_volume
Playback
Designation Invigilator
Contact number
Student program
Department
Semester
CGPA
N. of course
Composed by Write
Published by Download
Written by Delete
Lab 02
Problem Statement
In the below diagram, we have two different types of file classes (PDF and Video). You are
required to apply the concept of generalization to the given classes and draw a class diagram
showing this generalization relationship.
Solution