### Question Related to COCOMO model – 3

**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.**

Parameter | Language L1 | Language L2 |

Man years needed for development | LOC / 10000 | LOC / 10000 |

Development Cost per year | Rs. 10,00,000 | 7,50,000 |

Maintenance Time | 5 Years | 5 Years |

Cost of maintenance per year | Rs. 1,00,000 | Rs. 50,000 |

**Total cost of the project includes 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?**

Solution:

Lets 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:

Total cost of the project includes 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.

## Master2Teach YouTube Channel

In this YouTube Channel, you can find different kind of useful tutorials related to information technologies.