2 Replies - 918 Views - Last Post: 17 February 2009 - 07:36 PM Rate Topic: -----

#1 poison  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 17-February 09

what is the source code of convert length to weight

Posted 17 February 2009 - 07:13 PM

what is the source code of c++ in convert to length to weight
Is This A Good Question/Topic? 0
  • +

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

#2 KYA  Icon User is offline

  • g++ jameson.cpp -o beverage
  • member icon

Reputation: 3124
  • View blog
  • Posts: 19,168
  • Joined: 14-September 07

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

Was This Post Helpful? 0
  • +
  • -

#3 KBentley57  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 19
  • Joined: 01-November 08

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.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1