Apr 30, 2009 01:49
so weird out of the blue, my lecturer send us this email...
Can anybody help?
A Question:
Libby is a teddy bear freak. She has $100 to spend and she wants to buy 101 teddy bears
How many of each bear would libby have to buy to spend exactly $100 and get 101 bears?
Bear A costs $5
Bear B costs $2
Bear C costs 10cents
Can anyone figure this out for me?
Leave a comment
Comments 28
Reply
i realised i'm damn lousy at using excel.
Reply
Put 0 in cells A1, B1, C1. (this will be the number of A, B and C bears)
D1 is =5*A1+2*B1+0.1*C1 (this will be the total cost of the bears)
E1 is =A+B+C (this will be the total number of bears)
Start the Solver dialog box
Set the cells to be changed to A1:C1
Add the following constraints:
A1:C1 = integer
A1:C1 >= 0
D1 = 100
E1 = 101
Click solve.
Reply
Reply
Reply
Reply
den solve it by simultaneous...
easier ones to guess would be bear C that costs 10cents... cos it would have to be whole numbers that are multiples of 10's.
Reply
X + Y + Z = 101
5X + 2Y + Z/10 = 100
den assume z = 10
den all wrong liaoz .. lolll
Reply
find it more fun to figure the fastest way to compute it. lolz
Reply
The algebraic method seems easier to solve if (the 2 equations are) combined with an additional condition that the number of type-C bears must be in multiple of 10, followed then by trial and error.
Mmm.. I've also tried solving without using algebraic method with the solution as shown below. But it doesn't seem elegant enough (or to be a method to be used at the intended level)..
( ... )
Reply
(The comment has been removed)
Reply
that's not the only way I like to be stimulated hokay? :P
ur blog entries dame funny. :)
Reply
Leave a comment