DB Error: 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 2

SELECT * FROM `user` the_table WHERE the_table.userid = DB Error: 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 2

SELECT * FROM `user` the_table WHERE the_table.userid = which formula/algorithm to use in measuring capacity? - iTechForums
Login
Search
Welcome to the iTechForums.
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.
To register now click here.
Latest Threads
Advertisements
Forum Statistics
Threads:
Posts: 2
Members:
Number of Users Online:
Welcome to our newest member,
Reply
 
Thread Tools Display Modes
  #1  
Old 05-13-2008, 05:05 PM
kaye ann kaye ann is offline
Junior Member
 
Join Date: May 2008
Posts: 2
Default

which formula/algorithm to use in measuring capacity?


who can formulate such formula/algorithm for me to know if certain boxes (given length, width height) can fit a truck (given length, width height)

for example:
i have 10 boxes w/ different measurements
and i have 5 trucks w/ different measurements

how will i know if 15 box1, 20 box2, 30 box3, and 20 box4 can fit into truck 1?
who can formulate such formula/algorithm for me to know if certain boxes (given length, width height) can fit a truck (given length, width height)

for example:
i have 10 boxes w/ different measurements
and i have 5 trucks w/ different measurements

how will i know if 15 box1, 20 box2, 30 box3, and 20 box4 can fit into truck 1?

if i have a truck measured in inches(L=168, W=108, H=84; V=1524096)

then i have a box measured in inches (L=24, W=16, H=17; V=6528)

if i divide the volume of the truck by the volume of the box, i get 233.

but in actuality, only 168 boxes of the same kind fits that truck
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 05-13-2008, 06:41 PM
Al Kyder Al Kyder is offline
Junior Member
 
Join Date: May 2008
Posts: 1
Default

Calculate the volume of the box you are given.
Calculate the volume of the truck.
Divide the volume of the truck by the volume of one box.
That is your answer.


*** If you have an actual question, post it here.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
algorithm for truck capacity given different boxes? kaye ann Software Design & Algorithms 0 05-13-2008 08:20 AM
tool for measuring coldfusion code quality? priya Cold Fusion 1 05-10-2008 05:43 AM
Why is the prim's algorithm greedy? Does the algorithm always return a correct peiyi l Software Design & Algorithms 1 05-06-2008 04:51 PM

Your Ad Here

All times are GMT. The time now is 01:03 AM.