Bachelor of Business Administration: (Information Technology)
Bachelor of Business Administration: (Information Technology)
ACADEMIC TASK - 1
ASSIGNMENT
Online Assignment 1
(Information Technology)
PHAGWARA, PUNJAB
Submitted By :
Ans.
So, in this method, each and every module is built and tested at an individual level (unit
testing) prior to integrating them to build a concrete solution. The unit testing is
performed by leveraging specific low-level functions.
o While the top-down approach focuses on breaking down a big problem into
smaller and understandable chunks, the bottom-up approach first focuses on
solving the smaller problems at the fundamental level and then integrating them
into a whole and complete solution.
o The top-down approach is primarily used by structured programming languages
such as C, COBOL, Fortran. On the contrary, the bottom-up approach is preferred
by OOP languages such as C++, C#, Python, Java, and Perl.
o In the top-down approach, each module and submodule are processed
separately, and hence, they might contain redundant information. However, the
bottom-up approach relies on data encapsulation and data-hiding, thereby,
minimizing redundancy.
o The top-down approach doesn’t require the modules to have a well-established
line of communication among them, whereas, in the bottom-up approach, the
modules must have a certain degree of interaction and communication among
them.
o While the top-down approach can be used in module documentation, debugging,
and code implementation, the bottom-up approach is primarily used in testing.
Thus, in conclusion, we can say that the top-down approach is rather the conventional
method that seeks to decompose a complex problem into smaller fragments (from high-
level specification to low-level specification), the bottom-up approach works is just the
opposite – it first concentrates on designing the fundamental components of an
algorithm and then moves up to a higher level to achieve a complete result.
Ans.
A computer program is stored as a file on the computer’s hard drive. When the user runs the
program, the file is read by the computer, and the processor reads the data in the file as a list
of instructions. Then the computer does what the program tells it to do.
• Program showing whether a given number is even or odd, program to find factorial of
a number, program to find greatest of all given numbers, program to check whether a
given number is palindrome or not; are few examples of the program.
• The software is a broad term which is designed to perform some specific set of
operations.
• A software can be classified into two categories: application software and system
software.
• An application software comes in wide range of varieties like a text editor, media
player, web browser, video player, video editor, image editor. Different types of
application software provide a different type of services.
Ans.
Provided interface -They are these interfaces describe the services that
instances of a classifier (supplier) offer to their clients.
Required interface -They are these interfaces specify the services that a
classifier needs to perform its functions and to fulfill its own obligations to its
clients.
Ans.
Extend is used when a use case conditionally adds steps to another first class use case. For
example, imagine "Withdraw Cash" is a use case of an ATM machine. "Assess Fee" would
extend Withdraw Cash and describe the conditional "extension point" that is instantiated
when the ATM user doesn't bank at the ATM's owning institution. Notice that the basic
"Withdraw Cash" use case stands on its own, without the extension.
• Extend, one can live without the other only some instances
the use case will extend to another use case to do some
stuff. For example, you can create an order but if the
order is for a new customer you possible have to do
additional check which you do not have to do for existing
customers. In that case you can have an extend use case.
Include is used to extract use case fragments that are duplicated in multiple use cases. The
included use case cannot stand alone and the original use case is not complete without the
included one. This should be used sparingly an only in cases where the duplication is
significant and exists by design (rather than by coincidence). For example, the flow of events
that occurs at the beginning of every ATM use case (when the user puts in their ATM card,
enters their PIN, and is shown the main menu) would be a good candidate for an include.
• Include used to extract common parts of the behaviours of
two or more use cases.
• Include, one cannot live without the other. The use case
must include another use case. For example when you create
an order you always must verify name etc.
eg:-
Use case I am going to city.
Fill the petrol may not be required at all times but may
optionally be required based on the amount of petrol left
in the car.
Drive is a prerequisite hence I am including.
Q5. Discuss in detail the different type of “Things” that are used in UML diagram
With the help of example ?
Ans.
As UML describes the real-time systems, it is very important to make a
conceptual model and then proceed gradually. The conceptual model of
UML can be mastered by learning the following three major elements −
Things
Things are the most important building blocks of UML. Things can be −
• Structural
• Behavioral
• Grouping
• Annotational
• Structural Things
Structural things define the static part of the model. They represent the
physical and conceptual elements. Following are the brief descriptions of the
structural things.
Class − Class represents a set of objects having similar responsibilities.
Use case −Use case represents a set of actions performed by a system for a
specific goal.
Node − A node can be defined as a physical element that exists at run time.
Behavioral Things
A behavioral thing consists of the dynamic parts of UML models. Following
are the behavioral things −
Interaction − Interaction is defined as a behavior that consists of a group of
messages exchanged among elements to accomplish a specific task.
State machine − State machine is useful when the state of an object in its life
cycle is important. It defines the sequence of states an object goes through in
response to events. Events are external factors responsible for state change
Grouping Things
Grouping things can be defined as a mechanism to group elements of a UML
model together. There is only one grouping thing available −
Package − Package is the only one grouping thing available for gathering
structural and behavioral things.
Annotational Things
Annotational things can be defined as a mechanism to capture remarks,
descriptions, and comments of UML model elements. Note - It is the only one
Annotational thing available. A note is used to render comments, constraints,
etc. of an UML element.