LOC – Software Engineering
Question 1 UGC NET June-2020 A company has a choice of two language L1 and L2 to develop a software for their client. Number of LOC required to develop an application in L2 is thrice the LOC in language L1. Also, software has to be maintained for the next 10 years. Various parameters for two languages are given below to decide which language should be preferred for development. PARAMETER L1 L2 Man-year needed for development LOC/1000 LOC/1000 Development cost Rs.70, 000 Rs.90, 000 Cost of Maintenance per year Rs.1, 00,000 Rs.40, 000 Total cost of the project includes the cost of development and maintenance. What is the LOC for L1for which cost of developing the software with both languages must be the same? |
A – 2000 |
B – 5000 |
C – 3000 |
D – 6000 |
Show Answer With Best Explanation
Answer: c
Solution:
It is given that number of LOC required to develop an application in L2 is thrice the LOC in language L1.
Suppose, Number of LOC required in L1 = x
so, Number of LOC required in L2 = 3x
Cost of developing the software =
(Number of LOC / Man-year needed for development) * Development cost + Maintenance Time *Cost of Maintenance per year
& condition is that cost of developing the software with both languages must be the same.
=> Cost of developing the software in L1 = Cost of developing the software in L2
=> (x /1000)* 70,000 + 101,00,000 = (3x /1000) 90,000 + 10*40,000
=> 70x + 10,00,000 = 270x + 4,00,000
=> 200x = 6,00,000
=> x = 3000