Skip to content
Related Articles
Get the best out of our app
GFG App
Open App
geeksforgeeks
Browser
Continue

Related Articles

GATE | GATE CS 2011 | Question 65

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like 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.

Parameter Language L1 Language L2
Man years needed for development LOC/10000 LOC/10000
Development cost per man year Rs. 10,00,000 Rs. 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?

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


Answer: (B)

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

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

Solving for x, we get x =5000

Source: http://clweb.csa.iisc.ernet.in/rahulsharma/gate2011key.html

Quiz of this Question

My Personal Notes arrow_drop_up
Last Updated : 28 Jun, 2021
Like Article
Save Article
Similar Reads