|
-
Sep 19th, 2002, 07:11 AM
#1
Thread Starter
Lively Member
Programming trouble - Easy to solve?
I have a little problem...I have 4 items and I need to pick the best item...after I get 2 values from a textbox....
Item Value1 Value2
A 256 8
B 512 14
C 512 28
D 1024 60
I need to pick an item which can handle the number...
for example...
Value1 = 100 and Value2 = 6 Returns Item A
Value1 = 100 and Value2 = 10 Returns Item B
Value1 = 600 and Value2 = 2 Returns Item D
Can anyone give me a good algorithm to solve this?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|