100 Chickens
A farm hand was sent by his employer to buy chickens. He was given $100, and told, to purchase 100 chickens. He bought a $2 hamburger, and was still able purchase 100 chickens.
Pricing:
Hens ----- $5
Roosters - $2
Chicks ----$1 for 2
When he returned to his employer, he had no money and 100 chickens.
How many of each did he purchase?
Pricing:
Hens ----- $5
Roosters - $2
Chicks ----$1 for 2
When he returned to his employer, he had no money and 100 chickens.
How many of each did he purchase?





13 Comments:
Any one of these.
Hens: 4 Rosters: 20 Chicks: 76 Cost: 98
Hens: 5 Rosters: 17 Chicks: 78 Cost: 98
Hens: 6 Rosters: 14 Chicks: 80 Cost: 98
Hens: 7 Rosters: 11 Chicks: 82 Cost: 98
Hens: 8 Rosters: 8 Chicks: 84 Cost: 98
Hens: 9 Rosters: 5 Chicks: 86 Cost: 98
Hens: 10 Rosters: 2 Chicks: 88 Cost: 98
I found a few more. After the burger, he had $98 left to buy chickens...
1. Hens: 0 Rosters: 32 Chicks: 68 Cost: 98
2. Hens: 1 Rosters: 29 Chicks: 70 Cost: 98
3. Hens: 2 Rosters: 26 Chicks: 72 Cost: 98
4. Hens: 3 Rosters: 23 Chicks: 74 Cost: 98
5. Hens: 4 Rosters: 20 Chicks: 76 Cost: 98
6. Hens: 5 Rosters: 17 Chicks: 78 Cost: 98
7. Hens: 6 Rosters: 14 Chicks: 80 Cost: 98
8. Hens: 7 Rosters: 11 Chicks: 82 Cost: 98
9. Hens: 8 Rosters: 8 Chicks: 84 Cost: 98
10. Hens: 9 Rosters: 5 Chicks: 86 Cost: 98
11. Hens: 10 Rosters: 2 Chicks: 88 Cost: 98
Was there an alebraic solution to this puzzle?
I couldn't find it.
regards, Curtis
This post has been removed by the author.
What sort of chicken is a roster?
I believe a chicken roster would be the schedule of a football team who did not want to play good competition because they are afraid (or chicken) ... jeez! .... must be the pain meds
I'd prefer a roaster.
You haven't said if Ragknot has done it.
I unintentionally deleted a comment saying that I think an odd number of chicks isn't playing by the (unwritten) rules.
Is there supposed to be a unique answer.
LOL. Are we allowed half a hen?
I didn't check his math, but I'm sure he's right ...Ragknot found multiple solutions.
The published solution is:
17 roosters -$34
-5 hens ----- $25
78 chicks --- $39
Total -------- $98
LOL, a "Rosters" is like a Fryer.
Sorry for the spelling.
My "algebraic" solution was
hc=5
rc=2
cc=.5
for h=1 to 20 ' all hens
for r=1 to 50 ' all roosters
c=100-h-r
if c>0 then
cost=hc*h+rc*r+cc*c
if cost =98 then print "Hens: ";h;" Rosters:"r;"Chicks:"c;"Cost:";cost
endif
endif
next
next
Roughly speaking - I don't have the exact PC code anymore.
Oh it should be 0 to 20 and 0 to 50
Ragknot, thanks for the code.
It's a bit of a swizzle not having a unique answer.
Post a Comment
Links to this post:
Create a Link
<< Home