softwareengineering2
softwareengineering2
A. K. SIROMONI
STCET
Lecture on COST BENEFIT ANALYSIS
A.K.SIROMONI (AIML) 2
PEOPLE -> PROCESS -> PRODUCT
A. K. Siromoni ( STCET) 3
PROJECT COST BENEFIT ANALYSIS
FOLLWING POINTS ARE CONSIDERED DURING COST BENEFIT ANALYSIS
COST
• DIRECT COST : SALARIES, SOFTWARE TOOLS, HARDWARE INFRASTRUCTURE,
EXTERNAL SERVICES etc
• INDIRECT COST : INSURANCE, FACILITY RENTALS, UTILITY COSTS etc
• HIDDEN COST : COSTS RELATED TO CUSTOMER SATISFACTION, EMPLOYEE MORALE,
OR OVERALL PRODUCTIVITY
• OPPORTUNITY COST : COSTS RELATED TO CHANGE OF DECISIONS DURING
PREPARATION OF SOFTWARE PRODUCT
• WASTED COST : COSTS RELATED TO WASTED TIME, MISSED POINTS, OVERTIME ETC.
BENEFIT
• DIRECT BENEFIT : THE MEASURABLE BENEFITS FROM A PROJECT, SERVICE, OR
SOFTWARE, SUCH AS REVENUE, PROFIT, OR SALES, ARE KNOWN AS DIRECT BENEFITS.
• INDIRECT BENEFIT : INDIRECT BENEFITS ARE THE QUALITATIVE BENEFITS THAT
CANNOT BE MEASURED BUT PERCEIVE. FOR INSTANCE, CHANGE OF GOVERNMENT
POLICY , DECREASE IN PRICE OF THE RESOURCES, INCREASED BRAND AWARENESS OR
CONSUMER BASE.
A. K. Siromoni ( STCET) 4
PROJECT COST ESTIMATION
PROJECT COST DEPENDS ON THE SIZE OF THE SOFTWARE AND
CALCULATED FROM THE EFFORT OF THE MAN POWER REQUIERED
FOR IMPLEMENTATION OF THAT SOFTWARE
A. K. Siromoni ( STCET) 5
• FUNCTIONAL POINT
ANALYSIS
A. K. Siromoni ( STCET) 8
• FUNCTIONAL POINT
ANALYSIS
WEIGHTING FACTORS of
FPs
MEASUREMENT
SIMPLE AVERAGE COMPLEX
PARAMETER
NUMBER OF USER
INPUTS 3 4 6
NUMBER OF USER
OUTPUTS 4 5 7
NUMBER OF USER
INQUIRES 3 4 6
NUMBER OF INTERNAL
LOGIC FILES 7 10 13
NUMBER OF USER
EXTERNAL INTERFACES 5 7 10
A. K. Siromoni ( STCET) 9
• FUNCTIONAL POINT
ANALYSIS
Example CALCULATION of FPs
PROBLEM :
Consider a software project with the following information domain
characteristic for the calculation of function point metric.
Number of external inputs (I) = 30
Number of external output (O) = 60
Number of external inquiries (E) = 23
Number of files (F) = 08
Number of external interfaces (N) = 02
It is given that the complexity weighting factors for I, O, E, F, and N are 4, 5, 4,
10, and 7, respectively. It is also given that, out of fourteen value adjustment
factors that influence the development effort, four factors are not applicable,
each of the other four factors has value 3, and each of the remaining factors
has value 4. The computed value of the function point metric is _____.
[GATE CS 2015]
A. K. Siromoni ( STCET) 10
• FUNCTIONAL POINT
ANALYSIS
CALCULATION OF TOTAL
COUNT
MEASUREMENT NUMBER OF
WEIGHTAGE TOTAL
PARAMETER FUNCTIONS
NUMBER OF USER
INPUTS 3O 4 120
NUMBER OF USER
OUTPUTS 60 5 300
NUMBER OF USER
INQUIRES 23 4 92
NUMBER OF INTERNAL
LOGIC FILES 08 10 80
NUMBER OF USER
EXTERNAL INTERFACES 02 7 14
TOTAL COUNT 606
A. K. Siromoni ( STCET) 11
• FUNCTIONAL POINT
ANALYSIS
CALCULATION OF GENERAL SYSTEM
CHARACTERISTICS ( fj )
FACTORS WITH VALUE NUMBER TOTAL
3 4 12
4 6 24
TOTAL ( ∑(fj) ) 36
A. K. Siromoni ( STCET) 13
COST CONSTRUCTION MODEL ( COCOMO )
COCOMO EFFORT CALCULATION is based on PROJECT TYPE:
i) ORGANIC ii) SEMI DETACHED iii) EMBEDDED
TYPE ORGANIC SEMI DETACHED EMBEDDED
SIZE Project Size Project Size is Project Size is big.
relatively small medium ( more than 300 KLOC
( 2 to 50 KLOC ) ( 50 to 300 KLOC )
)
TEAM Team comprises Team comprises Team comprises of
of highly of experienced experienced and
experienced and inexperienced
software inexperienced software engineers
engineers with a software with some expert
knowledge of engineers both. personnel .
preparing similar
projects
COMPLEXITY Low Medium High
ENVIRONMEN Less Constraints Moderate Strict Requirements
T Constraints
EXAMPLE Inventory Finance and Air Control System,
A. K. Siromoni ( STCET) 14
Management, Accounting, Instrument Automation
COST CONSTRUCTION MODEL ( COCOMO )
COCOMO ESTIMATION CAN BE DIVIDED IN THREE TYPES OF
MODELS:
i) BASIC ii) INTERMEDIATE iii) DETAILED
BASIC COCOMO MODEL is simple and quick and used for small and
medium projects . It estimates Effort from estimated KLOC in terms of
Person Month
E = a*(KLOC)b Person Month where E is EFFORT
Tdev = c*(E)d where Tdev is Develop Time in Month
Tp = E / Tdev where Tp is total persons required
a, b, c, d are constants determined by the category of software project given in
below table
Project
a b c d
Category
Semi-
3.0 1.12 2.5 0.35
Detached
Project
a b c d
Category
Semi-
3.0 1.12 2.5 0.35
Detached
Embedde
2.8 1.20 2.5 0.32
d
A. K. Siromoni ( STCET) 18
COST CONSTRUCTION MODEL ( COCOMO )
A. K. Siromoni ( STCET) 19
COST CONSTRUCTION MODEL ( COCOMO )
Size of the
application 0.94 1.00 1.08 1.16
database
The complexity
0.70 0.85 1.00 1.15 1.30 1.65
of the product
A. K. Siromoni ( STCET) 20
COST CONSTRUCTION MODEL ( COCOMO )
Run-time
performance 1.00 1.11 1.30 1.66
constraints
Memory
1.00 1.06 1.21 1.56
constraints
The volatility
of the virtual
0.87 1.00 1.15 1.30
machine
environment
Required
0.87 1.00 1.07 1.15
turnabout time
A. K. Siromoni ( STCET) 21
COST CONSTRUCTION MODEL ( COCOMO )
Software engineering
1.29 1.13 1.00 0.91 0.82
capability
Applications
1.42 1.17 1.00 0.86 0.70
experience
Virtual machine
1.21 1.10 1.00 0.90
experience
Programming
1.14 1.07 1.00 0.95
language experience
A. K. Siromoni ( STCET) 22
COST CONSTRUCTION MODEL ( COCOMO )
Extra
Project Attributes Very Low Low Nominal High Very High
High
Use of software
1.24 1.10 1.00 0.91 0.82
tools
Application of
software
1.24 1.10 1.00 0.91 0.83
engineering
methods
Required
development 1.23 1.08 1.00 1.04 1.10
schedule
A. K. Siromoni ( STCET) 23
COST CONSTRUCTION MODEL ( COCOMO )
The Effort Adjustment Factor (EAF ) = 1 X 1 X 1.11 X 1 X 1 X 0.91 X 0.91 X 0.83 X 1.10 = 0.84
A. K. Siromoni ( STCET) 25
COST CONSTRUCTION MODEL ( COCOMO )
A. K. Siromoni ( STCET) 26
COST CONSTRUCTION MODEL ( COCOMO )
Detailed COCOMO is used for very big projects divided into several
modules. Cost Drivers for each modules are calculated along with mode
factors consisting wider range of parameters like team experience,
development practices, and software complexity etc. At the end COCOMO
is applied to each module and final cost is determined by summation .
The Six phases of detailed COCOMO are:
Planning and requirements
System structure
Complete structure
Module code and test
Integration and test
Cost Constructive model
A. K. Siromoni ( STCET) 27
COST CONSTRUCTION MODEL ( COCOMO )
Differences between BASIC , INTERMEDIATE and DETALED COCOMO
Factor BASIC INTERMEDIATE DETAILED
Effort = a * (Size)^b * Effort = a * (Size)^b * EAF *
Equation Effort = a * (Size)^b
EAF Mode Factors
Cost Consider only KLOC Consider KLOC with 14 Consider KLOC with Mode
Consideration project specific factors Factors and project specific
( EAF ) factors per module
More comprehensive,
Project Basic software Wide range of project-specific
considers development
Characteristics development only characteristics
environment
A. K. Siromoni ( STCET) 28