Question-Related to COCOMO model – 3

A company needs to develop a strategy for software product development for which it has a choice of two programming languages L1 and L2. The number of lines of code (LOC) developed using L2 is estimated to be twice the LOC developed with L1. The product will have to be maintained for five years. Various parameters for the company are given in the table below.

ParameterLanguage L1Language L2
Man years needed for developmentLOC / 10000LOC / 10000
Development Cost per yearRs. 10,00,0007,50,000
Maintenance Time5 Years5 Years
Cost of maintenance per yearRs. 1,00,000Rs. 50,000

The total cost of the project includes the cost of development and maintenance. What is the LOC for L1 for which the cost of the project using L1 is equal to the cost of the project using L2?

COCOMO MODEL

Solution:

Let’s Suppose LOC for the L1 = X

Given that: The number of lines of code (LOC) developed using L2 is estimated to be twice the LOC developed with L1.

Then LOC for the L2 = 2X

We know that:

The total cost of the project includes the cost of development and maintenance. And the LOC for L1 for which the cost of the project using L1 is equal to the cost of the project using L2.

Development cost of L1 + Maintenance cost of L1  =  Development cost for L2 + Maintenance cost of L2

Development cost of L1 = (X / 10,000) * 1,00,0000

Maintenance cost of L1 = 5 * 1,00,000

Development cost of L2 = (2X / 10,000) * 7,00,000

Maintenance cost of L2 = 5 * 50,000

{(X / 10,000) * 10,00,000 + 5 * 1,00,000 }  =  { (2X / 10,000) * 7,50,000 + 5 * 50,000}

5X  =  2,50,000

X = 5,000

The LOC for L1 for which the cost of the project using L1 is equal to the cost of the project using L2 = 5,000.

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *