cs507 Assignment 3 Solution
cs507 Assignment 3 Solution
Assignment NO #3 solution
What system analysis technique is most suitable to present the above process in a pictorial
form to show the sequences of activities, decisions, and results?
Ans: The Data Flow Diagram (DFD) provides the most appropriate graphical representation of
the information system flow in pictorial form of the above method to display a sequence of
actions, decisions and outcomes.
a. Enlist all the components, symbols, and meanings used in above technique.
Arrow;
Or
Terminator
Only one flow line should come out from a process symbol.
Decision
Only one flow line should enter a decision symbol, but two or
three flow lines, one for each possible answer, should leave
the decision symbol
<0 >0
=0 <0 >0
Connectors
Single Document
Off-page Connector
E.g.
Data flow
Ans;
Faulty behavior
No
Yes
Software development
Part a Solution:
The term polymorphism denotes several types. In simple words, polymorphism can be defined as
the ability of a message to appear in more than one form. Real-life example of polymorphism: A
person can have different characteristics at the same time. Like a man, he is a father, a partner,
and an employee at the same time.
In object-oriented programming, polymorphism (from the Greek meaning "having many forms")
is the trait of being able to assign a different meaning or usage to something in different contexts
— specifically, allowing an entity like a variable, a function, or an object to have more than one
type.
Encapsulation
Encapsulation means the concealment of information. For example, when you press the Play
button the tape will be played. The actual method of playback of the tape is not evident however.
A further example of the banking software can be offered. The banking program provides an
option for benefit calculation, but the actual steps when performed remain invisible to the user
when the option is disabled the sum will be measured as and when necessary.
Polymorphism
Following example will help understand the concept in a better
Manner;
Thus the concept can be defined based on the example given above. Polymorphism is a
derivative of Greek which means "multiple forms"). Polymorphism is the characteristic of being
able to assign a different meaning or use to something in different contexts-specifically, allowing
an entity such as a variable, a process, or an object to have more than one type.