Object Oriented Software Engineering
Object Oriented Software Engineering
ASSIGNMENT -1
NAME : AJAY S
CLASS : CSE III YEAR
REG NO : 910022104001
TOPIC : DATA FLOW DIAGRAM
ER DIAGRAM
NORMALISATION
DATA FLOW DIAGRAM (DFD)
➢ Data flow diagrams are used to graphically represent the flow of data in a
business information system. DFD describes the processes that are
involved in a system to transfer data from the input to the file storage and
reports generation.
➢ A Physical Data Flow Diagram (Physical DFD) represents how data flows
within a system, including hardware, software, people, and processes
involved in data movement. It focuses on the actual implementation of the
system, detailing who processes the data and how it is stored, transmitted,
and processed.
3. Level 2
Diagram:
ONLINE
PAYMENT
CUSTOMER SHOPPING
GATEWAY
SYSTEM
Level 1 DFD
Diagram:
Level 2 DFD
• The Book Borrowing module is further divided into:
• Credit card payment
• UPI payment
CREDIT CARD
PAYMENT
MAKE
PAYMENT
UPI
PAYMENT
Conclusion
TYPES OF ENTITY
1. STRONG ENTITY
A strong entity is a type of entity that has a key attribute. strong entity does not
depend on other entity in the schema. it has a primary key, that helps in identifying
it uniquely, and it is represented by a rectangle. these are called strong entity
types.
2. WEAK ENTITY
An entity type has a key attribute that uniquely identifies each entity in the entity
set. but some entity type exists for which key attributes can’t be defined.
Attributes are the properties that define the entity type. For example, Roll_No,
Name, DOB, Age, Address, and Mobile_No are the attributes that define entity
type Student. In ER diagram, the attribute is represented by an oval.
Types of Attributes
1. Key Attribute
The attribute which uniquely identifies each entity in the entity set is called the
key attribute. For example, Roll_No will be unique for each student. In ER
diagram, the key attribute is represented by an oval with underlying lines.
2.Composite Attribute
An attribute consisting of more than one value for a given entity. For example,
Phone_No (can be more than one for a given student). In ER diagram, a
multivalued attribute is represented by a double oval
4. Derived Attribute
An attribute that can be derived from other attributes of the entity type is known
as a derived attribute. e.g.; Age (can be derived from DOB). In ER diagram, the
derived attribute is represented by a dashed oval.
DEGREE OF A RELATIONSHIP SET
1. Unary Relationship:
When there is only ONE entity set participating in a relation, the
relationship is called a unary relationship. For example, one person is
married to only one person.
2. Binary Relationship:
When there are TWO entities set participating in a relationship, the
relationship is called a binary relationship. For example, a Student is
enrolled in a Course.
3. Ternary Relationship:
When there are three entity sets participating in a relationship, the
relationship is called a ternary relationship.
4. N-ary Relationship:
When there are n entities set participating in a relationship, the
relationship is called an n-ary relationship.
CARDINALITY:
1. One-to-One:
When each entity in each entity set can take part only once in the
relationship, the cardinality is one-to-one. Let us assume that a male can
marry one female and a female can marry one male. So the relationship
will be one-to-one.
2.One-to-Many:
In one-to-many mapping as well where each entity can be related to more than
one entity and the total number of tables that can be used in this is 2. Let us
assume that one surgeon department can accommodate many doctors. So the
Cardinality will be 1 to M. It means one department has many Doctors.
3.Many-to-One:
When entities in one entity set can take part only once in the relationship set and
entities in other entity sets can take part more than once in the relationship set,
cardinality is many to one. Let us assume that a student can take only one course
but one course can be taken by many students. So the cardinality will be n to 1. It
means that for one course there can be n students but for one student, there will
be only one course.
4.Many-to-Many:
When entities in all entity sets can take part more than once in the
relationship cardinality is many to many. Let us assume that a student can
take more than one course and one course can be taken by many students.
So the relationship will be many to many.
❖ First Normal Form (1NF): This is the most basic level of normalization.
In 1NF, each table cell should contain only a single value, and each
column should have a unique name. The first normal form helps to
eliminate duplicate data and simplify queries
CONCLUSION:
Normalization improves database design by reducing redundancy and ensuring
consistency, making the system more scalable, efficient, and easier to
maintain. However, excessive normalization may lead to complex queries and
performance overhead, so a balance between normalization and denormalization
is often necessary.