0% found this document useful (0 votes)
35 views68 pages

MSC - (It) : Software Engineering Semester - I

Software Engg. answers

Uploaded by

JoyJoy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views68 pages

MSC - (It) : Software Engineering Semester - I

Software Engg. answers

Uploaded by

JoyJoy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 68

Copyright Amity University

1

MSc-(IT)
Software Engineering
Semester - I



Copyright Amity University
Faculty Profile
MSc (Computer Science)
CCNA (Cisco certified Network Associate)
CCNA (Cisco certified )
Ph D (CSE) (Thesis Submitted)

Publications
International/ National Journal = 8 (including ACM, ISJKE)
International/ National Conference = 9 (including Springer)
Conference/ Workshop Attended
Bangkok
Vietnam

Copyright Amity University
Patents filed provisionally
ANN model
Area of specialization
Software Engineering
Artificial Intelligence
Experience
5 + teaching
1 research
Member
Cisco (Academic Council, USA)
Cisco (Learning Institute, USA)
Copyright Amity University
Why We Need Software
Engineering?
Change in nature & complexity of software
Concept of one guru is over
We all want improvement

Copyright Amity University
Why Software Engineering?
Software development is hard !
Important to distinguish easy systems (one
developer, one user, experimental use only) from
hard systems (multiple developers, multiple users,
products)
Experience with easy systems is misleading
One person techniques do not scale up
Analogy with bridge building:
Over a stream = easy, one person job
Over River Severn ? (the techniques do not scale)
6
Software Crisis!
over budget
53%
success
16%
failure
31%
Copyright Amity University
Software Crises
As per the IBM report, 31%of the project get
cancelled before they are completed, 53% over-
run their cost estimates by an average of 189%
and for every 100 projects, there are 94 restarts.
Copyright Amity University
Factors Contributing Software Crises
Larger problems,
Lack of adequate training in software
engineering
Increasing skill shortage,
Low productivity improvements

9
Some Software failures
It took the European Space Agency 10 years and $7
billion to produce Ariane 5, a giant rocket capable of
hurling a pair of three-ton satellites into orbit with each
launch and intended to give Europe overwhelming
supremacy in the commercial space business.
Ariane 5
The rocket was destroyed after 39 seconds of its launch,
at an altitude of two and a half miles along with its
payload of four expensive and uninsured scientific
satellites.
10
When the guidance systems own computer
tried to convert one piece of data the
sideways velocity of the rocket from a 64 bit
format to a 16 bit format; the number was too
big, and an overflow error resulted after 36.7
seconds. When the guidance system
shutdown, it passed control to an identical,
redundant unit, which was there to provide
backup in case of just such a failure.
Unfortunately, the second unit, which had
failed in the identical manner a few
milliseconds before.
Some Software failures
11
Y2K problem:
It was simply the ignorance about the adequacy
or otherwise of using only last two digits of the
year.
The 4-digit date format, like 1964, was shortened
to 2-digit format, like 64.
Some Software failures
12
The Patriot Missile
o First time used in Gulf war
Reasons:
A small timing error in the systems clock accumulated
to the point that after 14 hours, the tracking system
was no longer accurate. In the Dhahran attack, the
system had been operating for more than 100 hours.
o Used as a defense from Iraqi Scud missiles
o Failed several times including one that killed 28 US
soldiers in Dhahran, Saudi Arabia
Some Software failures
13
Part of an abort scenario for
the Shuttle requires fuel
dumps to lighten the
spacecraft. It was during the
second of these dumps that a
(software) crash occurred.
...the fuel management
module, which had performed
one dump and successfully
exited, restarted when recalled
for the second fuel dump...
The Space Shuttle
Some Software failures
14
Some Software failures
Windows XP
o Microsoft released Windows XP on October 25, 2001.
o On the same day company posted 18 MB of
compatibility patches on the website for bug fixes,
compatibility updates, and enhancements.
o Two patches fixed important security holes.
Copyright Amity University
15
What is software?
It is defined as Computer programs
and associated documentation
16

Programs

Operating
Procedures

Documentatio
n
Software=Program+Documentation+Operating Procedures
Components of software
What is software?
What are the attributes of good software?
The software should deliver the required functionality and
performance to the user and should be maintainable, dependable
and usable
Maintainability
Software must evolve to meet changing needs
Dependability
Software must be trustworthy
Efficiency
Software should not make wasteful use of system resources
Usability
Software must be usable by the users for which it was designed
18
Documentation
Manuals
Analysis
/Specification
Design
Implementation
Testing
Formal Specification
Context-
Diagram
Data Flow
Diagrams
Flow Charts
Entity-Relationship
Diagram
Source Code Listings
Cross-Reference
Listing
Test Data
Test Results
Documentation consists of different types of manuals are
List of documentation manuals
19
Operating
Procedures
User
Manuals
Operational
Manuals
System Overview
Beginners Guide
Tutorial
Reference Guide
Installation Guide
System
Administration Guide
List of operating procedure manuals.
Documentation consists of different types of manuals are
What is a software
process?
A set of activities whose goal is the development or
evolution of software
Generic activities in all software processes are:
Specification - what the system should do and its
development constraints
Development - production of the software system
Validation - checking that the software is what the customer
wants
Evolution - changing the software in response to changing
demands

What is a software process model?
A simplified representation of a software process,
presented from a specific perspective
Examples of process perspectives:
Workflow perspective represents inputs, outputs and dependencies
Data-flow perspective represents data transformation activities
Role/action perspective represents the roles/activities of the
people involved in software process
Generic process models
Waterfall
Evolutionary development
Formal transformation
Integration from reusable components
22
Software products may be developed for a particular
customer or may be developed for a general market
Software Product
Software products may be
Generic - developed to be sold to a range of different customers
Bespoke (custom) - developed for a single customer according to their specification
Copyright Amity University
23
What is software engineering?
Software engineering is an engineering discipline which is
concerned with all aspects of software production
Software engineers should
adopt a systematic and organised approach to their
work
use appropriate tools and techniques depending on
the problem to be solved,
the development constraints and
use the resources available


24
At the first conference on software engineering in 1968, Fritz Bauer defined software
engineering as The establishment and use of sound engineering principles in order to
obtain economically developed software that is reliable and works efficiently on real
machines.
Stephen Schach defined the same as A discipline whose aim is the production of quality
software, software that is delivered on time, within budget, and that satisfies its
requirements.
Both the definitions are popular and acceptable to majority. However, due to increase in
cost of maintaining software, objective is now shifting to produce quality software that is
maintainable, delivered on time, within budget, and also satisfies its requirements.
What is software engineering?
25
Software Process
The software process is the way in which we produce
software.
Why is it difficult to improve software process ?
Not enough time
Lack of knowledge
26
Learning curve
Do not quit here!
Improved future state
Process improvement
begins
Initial state
state
Productivity
Time
Wrong motivations
Software Process
Insufficient commitment
27
Software Characteristics:
Software does not wear out.
Useful life
phase
Wear out
phase
Burn-in
phase
F
a
i
l
u
r
e

I
n
t
e
n
s
i
t
y

Time
28
Software is not manufactured
Software Characteristics:
Reusability of components
Software is flexible
29
Comparison of constructing a bridge vis--vis writing a program.
Sr.
No
Constructing a bridge Writing a program
1.
2.
3.
4.
5.
6.
7.


Software Characteristics:
The problem is well understood
Only some parts of the problem are
understood, others are not
There are many existing bridges
The requirement for a bridge typically do
not change much during construction
The strength and stability of a bridge can be
calculated with reasonable precision
When a bridge collapses, there is a
detailed investigation and report
Engineers have been constructing bridges
for thousands of years
Materials (wood, stone,iron, steel) and
techniques (making joints in wood, carving
stone, casting iron) change slowly.
Every program is different and designed for
special applications.
Requirements typically change during all
phases of development.
Not possible to calculate correctness of a
program with existing methods.
When a program fails, the reasons are often
unavailable or even deliberately concealed.
Developers have been writing programs
for 50 years or so.
Hardware and software changes rapidly.
30
System
Software
Real Time
Software
Embedded
Software
Engineering
and Scientific
Software
Web based
Software
Artificial
Intelligence
Software
Personal
Computer
Software
Business
Software
Software Applications
31
The Changing Nature of Software
Trend has emerged to provide source code to the
customer and organizations.
Software where source codes are available are known
as open source software.
Examples
Open source software: LINUX, MySQL, PHP, Open office, Apache webserver etc.
Copyright Amity University
32
Management may be confident about good
standards and clear procedures of the
company.
But the taste of any food item
is in the eating;
not in the Recipe !
Software Myths (Management Perspectives)

Copyright Amity University
33
Company has latest computers and state-
of-the-art software tools, so we shouldnt
worry about the quality of the product.
The infrastructure is
only one of the several factors
that determine the quality
of the product!
Software Myths (Management Perspectives)
Copyright Amity University
34
Addition of more software specialists, those with
higher skills and longer experience may bring the
schedule back on the track!
Unfortunately,
that may further delay the schedule!
Software Myths (Management Perspectives)
35
Software is easy to change
The reality is totally different.
Software Myths (Management Perspectives)
36
Computers provide greater reliability than
the devices they replace
This is not always true.
Software Myths (Management Perspectives)
Copyright Amity University
37
A general statement of objectives is sufficient to get
started with the development of software. Missing/vague
requirements can easily be incorporated/detailed out as
they get concretized.
If we do so, we are heading
towards a disaster.
Software Myths (Customer Perspectives)
38
Software with more features is better
software
Software can work right the first time
Both are only myths!
Software Myths (Customer Perspectives)
Copyright Amity University
39
Once the software is demonstrated, the job is
done.
Usually, the problems just begin!
Software Myths (Developer Perspectives)
Copyright Amity University
40
Software quality can not be assessed before
testing.
However, quality assessment techniques
should be used through out the
software development life cycle.
Software Myths (Developer Perspectives)
Copyright Amity University
41
The only deliverable for a software
development project is the tested code.
Tested code is only one of the deliverable!
Software Myths (Developer Perspectives)
42
Aim is to develop working programs
Those days are over. Now objective is to
develop good quality maintainable
programs!
Software Myths (Developer Perspectives)
43
Some Terminologies
Deliverables and Milestones
Different deliverables are generated during software development. The examples are
source code, user manuals, operating procedure manuals etc.
The milestones are the events that are used to ascertain the status of the project.
Finalization of specification is a milestone. Completion of design documentation is another
milestone. The milestones are essential for project planning and management.
44
Product and Process
Some Terminologies
Product: What is delivered to the customer, is called a product. It may include source code,
specification document, manuals, documentation etc. Basically, it is nothing but a set of
deliverables only.
Process: Process is the way in which we produce software. It is the collection of activities
that leads to (a part of) a product. An efficient process is required to produce good quality
products.
If the process is weak, the end product will undoubtedly suffer, but an obsessive over
reliance on process is also dangerous.
45
Some Terminologies
Measures, Metrics and Measurement
A measure provides a quantitative indication of the extent, dimension, size, capacity,
efficiency, productivity or reliability of some attributes of a product or process.
Measurement is the act of evaluating a measure.
A metric is a quantitative measure of the degree to which a system, component or process
possesses a given attribute.
46
Some Terminologies
Software Process and Product Metrics
Process metrics quantify the attributes of software development process and environment;
whereas product metrics are measures for the software product.
Examples
Process metrics: Productivity, Quality, Efficiency etc.
Product metrics: Size, Reliability, Complexity etc.

47
Productivity and Effort
Productivity is defined as the rate of output, or production per unit of effort, i.e. the output
achieved with regard to the time taken but irrespective of the cost incurred.
Hence most appropriate unit of effort is Person Months (PMs), meaning thereby number of
persons involved for specified months. So, productivity may be measured as LOC/PM (lines
of code produced/person month)
Some Terminologies
48
Some Terminologies
Module and Software Components
There are many definitions of the term module. They range from a module is a FORTRAN
subroutine to a module is an Ada Package, to Procedures and functions of PASCAL and
C, to C++ Java classes to Java packages to a module is a work assignment for an
individual developer. All these definition are correct. The term subprogram is also used
sometimes in place of module.
49
An independently deliverable piece of functionality providing access to its services
through interfaces.
A component represents a modular, deployable, and replaceable part of a system that
encapsulates implementation and exposes a set of interfaces.
Some Terminologies
50
Some Terminologies
Generic and Customized Software Products
Generic products are developed for anonymous customers. The target is generally the
entire world and many copies are expected to be sold. Infrastructure software like
operating system, compilers, analyzers, word processors, CASE tools etc. are covered in this
category.
The customized products are developed for particular customers. The specific product is
designed and developed as per customer requirements. Most of the development
projects (say about 80%)come under this category.
51
Role of Management in Software Development
Factors
People
Product Process
Project
52
Dependency
Order
Project
Product
Process
People
1
2
3
4
Role of Management in Software Development
Copyright Amity University
Software Development Life Cycle
Requirement Analysis &
Specification
Design
Coding
Testing
Maintenance & Operations
Copyright Amity University
Software Life Cycle Model
Waterfall Model
Prototype Model
Iterative Enhancement Model
Evolutionary Development Model
Spiral Model
Rapid Application Development (RAD) Model
Copyright Amity University
Waterfall Model
Linear Sequential Model
Classical Life Cycle Model
R e q u i r e m e n t

Design
I m p l e m e n t a t i o n
a n d u n i t t e s t i n g
I n t e g r a t i o n a n d
s y s t e m t e s t i n g
Operation &
Maintenance
Copyright Amity University
Problems with the Waterfall Model
It is difficult to define all requirements at the beginning of
a project
This model is not suitable for accommodating any
change
A working version of the system is not seen until late in
the projects life
It does not scale up well to large projects
Real projects are rarely sequential
Copyright Amity University
Prototype Model
It is also known as throw away model.
It is developed as per the current available
requirement.
The code for the prototype model is
thrown away; however the experience
gathered from developing the prototype
helps in developing the actual system.
Copyright Amity University
58
Linear model
Rapid
Prototype Model
59
Requirements
specification
Architectural
design
Detailed
design
Implementation
and unit testing
Integration
and testing
Operation and
Maintenance
Iterative Enhancement Model
60
Evolutionary Process Models
Evolutionary process model resembles iterative
enhancement model. The same phases as defined for the
waterfall model occur here in a cyclical fashion. This model
differs from iterative enhancement model in the sense that
this does not require a useable product at the end of each
cycle. In evolutionary development, requirements are
implemented by category rather than by priority.
This model is useful for projects using new technology that
is not well understood. This is also used for complex
projects where all functionality must be delivered at one
time, but the requirements are unstable or not well
understood at the beginning.
Copyright Amity University
Evolutionary Development Model

Validation
Final
version
Development
Intermediate
versions
Specification
Initial
version
Outline
description
Concurr ent
activities
Copyright Amity University
Spiral Model

Phases of Spiral Model
Planning: Determination of objectives,
alternatives and constraints.
Risk Analysis: Analyze alternatives and
attempts to indentify and resolve the risks
involved
Development: Product development and
testing product.
Assessment: Customer evaluation
63
Spiral Model

64
o Build a rapid prototype
o Give it to user for evaluation & obtain feedback
o Prototype is refined
Requirement
s
Planning
User
Description

Construction


Cut over

With active participation of users
Rapid Application Development (RAD) Model
65
Not an appropriate model in the absence of user
participation.
Reusable components are required to reduce
development time.
Highly specialized & skilled developers are required
and such developers are not easily available.
Rapid Application Development (RAD) Model
66
1.1 Software is
(a) Superset of programs (b) subset of programs
(c) Set of programs (d) none of the above
1.2 Which is NOT the part of operating procedure manuals?
(a) User manuals (b) Operational manuals
(c) Documentation manuals (d) Installation manuals
1.3 Which is NOT a software characteristic?
(a) Software does not wear out (b) Software is flexible
(c) Software is not manufactured (d) Software is always correct
1.4 Product is
(a) Deliverables (b) User expectations
(c) Organization's effort in development (d) none of the above
Multiple Choice Questions
Note: Select most appropriate answer of the following questions:
1.5 To produce a good quality product, process should be
(a) Complex (b) Efficient
(c) Rigorous (d) none of the above
67
1.6 Which is not a product metric?
(a) Size (b) Reliability
(c) Productivity (d) Functionality
1.7 Which is NOT a process metric?
(a) Productivity (b) Functionality
(c) Quality (d) Efficiency
1.8 Effort is measured in terms of:
(a) Person-months (b) Rupees
(c) Persons (d) Months
1.9 UML stands for
(a) Uniform modeling language (b) Unified modeling language
(c) Unit modeling language (d) Universal modeling language
Multiple Choice Questions
Note: Select most appropriate answer of the following questions:
1.10 An independently deliverable piece of functionality providing access to
its services through interface is called
(a) Software measurement (b) Software composition
(c) Software measure (d) Software component
Thank You
68

You might also like