Answer: COCOMO (Constructive Cost Model, Barry Boehm, 1981) estimates software effort, development time and staff from the estimated size in KLOC. It has three levels: Basic, Intermediate and Detailed, and three project types: Organic, Semi-detached and Embedded.
Outputs of COCOMO: Effort \(E\) in person-months (PM), development time \(D\) in months, average staff \(= E/D\), and cost \(=\) effort \(\times\) cost per person-month.
Project types:
- Organic: small team, familiar problem, flexible requirements (about 2–50 KLOC), e.g. simple business or inventory system.
- Semi-detached: medium size and experience, mixed requirements (about 50–300 KLOC), e.g. compiler, database system.
- Embedded: tight hardware, software and operational constraints, e.g. air traffic control, ATM, real-time systems.
1. Basic COCOMO
\(E = a\,(KLOC)^{b}\ \text{PM}, \qquad D = c\,(E)^{d}\ \text{months}\)
| Project type | a | b | c | d |
|---|---|---|---|---|
| Organic | 2.4 | 1.05 | 2.5 | 0.38 |
| Semi-detached | 3.0 | 1.12 | 2.5 | 0.35 |
| Embedded | 3.6 | 1.20 | 2.5 | 0.32 |
It gives a quick, rough estimate because it uses size only.
2. Intermediate COCOMO
\(E = a\,(KLOC)^{b} \times EAF\), where EAF (Effort Adjustment Factor) is the product of the ratings of 15 cost drivers in four groups:
- Product: required reliability, database size, product complexity.
- Hardware/computer: execution time constraint, memory constraint, virtual machine volatility, turnaround time.
- Personnel: analyst capability, application experience, programmer capability, VM experience, language experience.
- Project: use of modern practices, use of software tools, required schedule.
Coefficients: organic \(a = 3.2,\ b = 1.05\); semi-detached \(a = 3.0,\ b = 1.12\); embedded \(a = 2.8,\ b = 1.20\). Each driver is rated very low to extra high, giving a multiplier around 1.0.
3. Detailed COCOMO
- Applies the intermediate model to each module separately and adds the results.
- Uses phase-sensitive effort multipliers, so each cost driver can affect each phase differently.
- Phases: plan and requirements, system (product) design, detailed design, module code and unit test, integration and test.
Example (Basic, organic, 32 KLOC):
\(E = 2.4\times(32)^{1.05} \approx 2.4\times38.0 \approx 91\ \text{PM}\)
\(D = 2.5\times(91)^{0.38} \approx 2.5\times5.55 \approx 13.9\ \text{months}\)
Average staff \(= 91/13.9 \approx 6.6 \approx 7\) persons.
Advantages: simple, transparent formulas; factors that affect cost are clearly shown; useful for comparing options.
Limitations: needs KLOC early, when size is hard to know; coefficients come from old projects and must be calibrated; ignores requirement volatility and modern practices (handled later by COCOMO II).