Metrics & Cost Estimation.
Metrics & Cost Estimation.
Metrics & Cost Estimation.
Disadvantages-
Not likely that 1000LOC will have more errors that of 100 LOC
It can only be measured after code has been written.
Predictions may not be accurate.
C=e−n+2
5
MCCABE’S METRIC
10
FUNCTION POINTS
FP = 4I + 4O + 5Q + 10F + 7X
11
FUNCTION POINTS
FP = 4I + 4O + 5Q + 10F + 7X..................... Equation 8.8
If Wi are weighting factors, Fj are “complexity adj. factors”,
and Ai are item counts, then FP is defined as:
…Equation 8.9
Higher the FP, more difficult is the system to implement.
16
METRICS FOR OBJECT ORIENTED S/W
OBJECTIONs to Metrics
More powerful the language, less productive the programmer
Missused for “proving a point” to Managers
Low cyclomatic complexity leads to reliability but no way to
prove why.
17
COST ESTIMATION USING COCOMO
Cost estimation is important component of Engineering
real-time software systems.
Type of system a b
Assume using CASE,
2000 LOC per month Organic 3.2 1.05
Semi-detached 3.0 1.12
COCOMO II -
Original COCOMO was defined in terms of DSI