what is the source code of c++ in convert to length to weight

## 2 Replies - 1257 Views - Last Post: 17 February 2009 - 07:36 PM

### #1

# what is the source code of convert length to weight

Posted 17 February 2009 - 07:13 PM

##
**Replies To:** what is the source code of convert length to weight

### #2

## Re: what is the source code of convert length to weight

Posted 17 February 2009 - 07:33 PM

You'll have to figure out what the correlation is between length and weight of an object. no one here will be able to offer advice since we have no idea what it is.

This post has been edited by **KYA**: 17 February 2009 - 07:33 PM

### #3

## Re: what is the source code of convert length to weight

Posted 17 February 2009 - 07:36 PM

In order to convert the length of an object to its weight, you must know the density and the object in question and the volume. Given that you can find the volume from the length the function you need to find is:

f(l) = D * V(l)

where D is the density and V(l) is the volume of the object. Shouldn't be too hard for easy shapes, or for any analytical shape for that matter.

f(l) = D * V(l)

where D is the density and V(l) is the volume of the object. Shouldn't be too hard for easy shapes, or for any analytical shape for that matter.

Page 1 of 1