Skip to content
Related Articles
Open in App
Not now

Related Articles

GATE | GATE CS 2011 | Question 65

Improve Article
Save Article
  • Last Updated : 28 Jun, 2021
Improve Article
Save Article

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 Ll. 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 man yearRs. 10,00,000Rs. 7,50,000
Maintenance time5 years5 years
Cost of maintenance per yearRs. 1,00,000Rs. 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?

(A) 4000
(B) 5000
(C) 4333
(D) 4667

Answer: (B)

Explanation: Let LOC of L1=x, so LOC of L2=2x

(x/10000)*1000000 + 5*100000 = (2x/10000)*750000 + 5*50000

Solving for x, we get x =5000


Quiz of this Question

My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!