Académique Documents
Professionnel Documents
Culture Documents
Instructions to Student:
Please Note: Work presented in an assessment must be your own. Plagiarism is
where a student copies work from another source, published or unpublished
(including the work of another student) and fails to acknowledge the influence of
another’s work or to attribute quotes to the author. Plagiarism is an academic offence
and the penalty can be serious. To detect possible plagiarism we may submit your
work to the national plagiarism detection facility. This searches the Internet and an
extensive database of reference material including other students’ work to identify.
I have read the above information and I confirm that this work is my
own and that it may be processed and stored in the manner described.
Scenario-1:
Logical reasoning:
A PERSON must belong to a COUNTRY:
Ali is the citizen of Pakistan. John is the citizen of America. Ali does not be
the citizen of Pakistan and America at a time and John does not be the citizen
of Pakistan and America at a time.
P1 C1
P2 C2
P3 C3
P1 C1
P2 C2
P3 C3
ERD
Attributes:
countryId:
key,simple,single-valued,stored,required
countryName
Non-key,simple,single valued,stored,required
personCNIC
key,simple,single valued,stored,required
personFname
Non-key,simple,single valued,stored,required
personLname
Non-key,simple,single valued,stored,required
Scenario-2:
In a school, Each STUDENT must be allocated to exactly one class and a
CLASS must be formed by at least twenty or more than twenty number of
STUDENTs. There are Many Mandatory posts for STUDENT’s exists in every
CLASS and there are Many Mandatory STUDENT’s assigned to different
posts (like CR and GR) in every CLASS.
Logical reasoning
Sidra is the STUDENT of M.C.S. Sobia and Shazia are also the STUDENT of
M.C.S.
C1 S1 C1 S1
C2 S2 C2 S2
C3 S3 C3 S3
ERD:
There are Many Mandatory posts for STUDENT’s exists in every CLASS
A CLASS M.C.S has two POST like C.R and G.R. CLASS M.i.T also has the
POST of C.R and G.R
C1 C.R C1 C.R
C2 G.R C2 G.R
ERD:
S1 C.R S1 C.R
S2 G.R S2 G.r
ERD:
COMPLETE ERD:
Attributes:
stdId:
key,simple,single-valued,stored,required
classId:
key,simple,single-valued,stored,required
stdFname
Non-key,simple,single valued,stored,required
stdLname
Non-key,simple,single valued,stored,required
post
non key,simple,single-valued,stored,required
program
Non-key,simple,single valued,stored,required
session
Non-key,simple,single valued,stored,required
Code
*/
Class diagram