0
0
Software Engineeringknowledge~10 mins

COCOMO model in Software Engineering - Step-by-Step Execution

Choose your learning style9 modes available
Concept Flow - COCOMO model
Start: Project Size Estimation
Select COCOMO Model Type
Basic
Calculate Effort
Calculate Development Time
Estimate People Required
Project Plan
The COCOMO model starts by estimating project size, choosing a model type, then calculating effort, time, and staffing to plan the project.
Execution Sample
Software Engineering
Effort = a * (Size)^b
Time = c * (Effort)^d
People = Effort / Time
Calculates effort, development time, and people needed based on project size using COCOMO formulas.
Analysis Table
StepVariableCalculationValueExplanation
1SizeGiven100 KLOCProject size in thousands of lines of code
2Model TypeSelectedBasicSimple COCOMO model chosen
3Effort2.4 * (100)^1.05302.1 Person-MonthsEffort estimated using formula for Basic model
4Time2.5 * (302.1)^0.3821.9 MonthsDevelopment time estimated
5People302.1 / 21.913.8 PeopleAverage staff needed
6End--Estimation complete
💡 All calculations done; project effort, time, and staffing estimated.
State Tracker
VariableStartAfter Step 3After Step 4After Step 5Final
Size (KLOC)100100100100100
Effort (Person-Months)N/A302.1302.1302.1302.1
Time (Months)N/AN/A21.921.921.9
People (Count)N/AN/AN/A13.813.8
Key Insights - 3 Insights
Why does the effort increase more than linearly with project size?
Because the effort formula uses an exponent greater than 1 (1.05), effort grows faster than size, reflecting complexity increase (see Step 3 in execution_table).
Why do we divide effort by time to get people?
People needed is effort spread over time, so dividing total person-months by months gives average staff (Step 5).
What changes if we select Intermediate or Detailed model?
They add adjustment factors for project attributes, changing coefficients and calculations beyond the basic formula (not shown in this simple trace).
Visual Quiz - 3 Questions
Test your understanding
Look at the execution_table at Step 3, what is the effort calculated for 100 KLOC?
A100 Person-Months
B302.1 Person-Months
C16.7 Person-Months
D2.4 Person-Months
💡 Hint
Check the 'Value' column at Step 3 in execution_table.
At which step does the model estimate the number of people needed?
AStep 5
BStep 4
CStep 2
DStep 6
💡 Hint
Look for the step where People is calculated in execution_table.
If the project size doubles, how does the effort change according to the formula?
AEffort doubles exactly
BEffort increases less than double
CEffort increases more than double
DEffort stays the same
💡 Hint
Refer to the exponent 1.05 in the effort formula in execution_sample.
Concept Snapshot
COCOMO Model Quick Reference:
- Input: Project size (KLOC)
- Effort = a * (Size)^b (a,b depend on model type)
- Time = c * (Effort)^d
- People = Effort / Time
- Models: Basic, Intermediate, Detailed
- Estimates effort, time, and staffing for software projects
Full Transcript
The COCOMO model helps estimate software project effort, time, and staffing based on project size. First, you estimate the size in thousands of lines of code (KLOC). Then, you select a model type: Basic, Intermediate, or Detailed. Using formulas with coefficients and exponents, you calculate the effort in person-months, the development time in months, and the average number of people needed. For example, with 100 KLOC and the Basic model, effort is about 302 person-months, time about 22 months, and staff about 14 people. Effort grows faster than size due to complexity. Dividing effort by time gives staffing. More detailed models adjust calculations with project attributes. This step-by-step process helps plan software projects realistically.