-
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 5 years. various parameters for the company are given in the table below.
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?
-
- 4000
- 5000
- 4333
- 4667
- 4000
Correct Option: B
Suppose, LOC of project L1 is x. The LOC of project L2 is 2x.
Cost of project L1 = Development cost + Maintenance cost = Manyears × Development cost/year + Maintenance time × Maintenance cost/year
= | × 1000000 + 5 × 100000 | |
10000 |
= 100 x + 500000
Cost of project L2 = Development cost + Maintenance cost
= | × 750000 + 5 × 50000 | |
10000 |
= 100 × x + 500000 = 150 × x + 250000
100 × x + 250000 = 150 × x
50 x = 250000
x = 5000