Thanks:  0
Likes:  0
Dislikes:  0

# Thread: How to estimate Lines of Code?

1. ## How to estimate Lines of Code?

Hi all,
With a project after understand the requirement from user. And the user asks our team that: Do the project with 1000 Lines of Code (LOC) Java.
I have some questions:
- Why the user can give us the number LOC is 1000?
- How to estimate Lines of Code?
- It there any methodology to measure this method?

Thanks,

2. ## Re: How to estimate Lines of Code?

Could you please be more clear.

No Client will insist on the LOC. He will be only interested in a quality product.

3. ## Re: How to estimate Lines of Code?

Little bit clear

nobody estimate the lines of code

but good teser can wirte 100 test cases for the 1000 lines of code.

4. ## Re: How to estimate Lines of Code?

said mraghu “Nobody estimate the lines of code” - I think that you are right.

But I want to talk the true story:
When my customer asked us do a project, and they asked “Do the project with 1000 Lines of Code (LOC) Java “. After we finished this project, the LOC was 1126 -> I think the customer is true.

So, now we want to know what method the customer estimated?
(Remember that we cannot ask customer How did they do).

I am intend to estimate by:
- Make statistics some projects closed with: use case, class, attribute, and method.
- Then, classify each class, and count LOC per class and method.

Can you give me any idea?
Thanks and Regards,

[ 09-06-2004, 08:28 PM: Message edited by: bonapac ]

5. ## Re: How to estimate Lines of Code?

why is the customer insisting on the LOC rather than the Quality Product?

6. ## Re: How to estimate Lines of Code?

You do an estimation of LOC by Putnam method if you have the effort ( which developers are experts either using Delphi, past experience or any other methods).
If it is Java LOC then use the following eqn:

LOC = 75000 * (Effort in person-years)^0.33 * ( Duration in years)^1.33
You will find that this is within 15% to 20% of the actalus!!

7. ## Re: How to estimate Lines of Code?

Originally posted by Ravindran.S:
why is the customer insisting on the LOC rather than the Quality Product?
<font size="2" face="Verdana, Arial, Helvetica">I don't know why. But they just only requires LOC, they didn't know UCP (Use case Point) or any other. So that we want to know How the customer can estimate the project by LOC.

Have you got any suggest.

Thanks,

8. ## Re: How to estimate Lines of Code?

Try talking to your customer - they may have a very good reason for what they are asking - even if they don't they are the customer and you should make your best attempt to comply. If you cannot comply you should let them know that so that they can find someone who can.

9. ## Re: How to estimate Lines of Code?

Originally posted by bonapac:
</font><blockquote><font size="1" face="Verdana, Arial, Helvetica">quote:</font><hr /><font size="2" face="Verdana, Arial, Helvetica">Originally posted by Ravindran.S:
why is the customer insisting on the LOC rather than the Quality Product?
<font size="2" face="Verdana, Arial, Helvetica">I don't know why. But they just only requires LOC, they didn't know UCP (Use case Point) or any other. So that we want to know How the customer can estimate the project by LOC.

Have you got any suggest.

Thanks,
</font><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">I don't know the background of your project, but perhaps this was a test of your company.

Perhaps the customer developed a program internally in about 1000 lines.
Then they came to your company to see if you could do the same.

I've seen similar (misguided) approaches to exploring outsourcing before.

Now the interesting questions is - why would they care? Perhaps they were paying your company by the line?

10. ## Re: How to estimate Lines of Code?

I have seen developers approximating the LOC for a project to estimate and plan resources etc. But a customer coming to a company saying this is my requirement, you develop it in X LOC!! wonderful...
I never came across a situation even remotely similar...

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.