This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Meaningless Drivel and the fly likes Try this Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Other » Meaningless Drivel
Reply Bookmark "Try this" Watch "Try this" New topic
Author

Try this

Aryan Khan
Ranch Hand

Joined: Sep 12, 2004
Posts: 289
Post your answers here......
---------------------
There's a bus with 7 girls

Each girl carries 7 bags

Each bag carries 7 big cats

Each big cat carries 7 smaller cats

(All the cats have 4 legs)

Question: how many legs are on the bus?
--------------------
Thanks
Aryan


OCP/MCP/SCJP/SCWCD/IBM XML/SCMAD/SCEA-1
dhwani mathur
Ranch Hand

Joined: May 08, 2007
Posts: 621
Hi thr

my answer is





let me know if m right..............
Peter van de Riet
Ranch Hand

Joined: Apr 09, 2004
Posts: 112

Originally posted by dhwani mathur:
Hi thr
my answer is

let me know if m right..............


I think you made a typo, my answer is 10990.


Each number system has exactly 10 different digits.
Steve Fahlbusch
Ranch Hand

Joined: Sep 18, 2000
Posts: 491
    
    2

Funny i get 10992
Aryan Khan
Ranch Hand

Joined: Sep 12, 2004
Posts: 289
One of the above is right...-- ...
Others keep trying
Frank Silbermann
Ranch Hand

Joined: Jun 06, 2002
Posts: 1328
Originally posted by Peter van de Riet:


I think you made a typo, my answer is 10990.
That's what I get.

(7 girls * 2 legs/girl)

plus

(7 girls * 7 bags/girl * 7 bigCats/bag * 4 legs/bigCat)

plus

(7 girls * 7 bags/girl * 7 bigCats/bag * 7 smallCats/bigCat * 4 legs/smallCat)
[ December 31, 2007: Message edited by: Frank Silbermann ]
Steve Fahlbusch
Ranch Hand

Joined: Sep 18, 2000
Posts: 491
    
    2

and the bus driver?
fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 9946
    
    6

Originally posted by Steve Fahlbusch:
and the bus driver?

the original problem never states that there is a bus driver. Perhaps one of the seven girls IS the bus driver. Or perhaps there is a security guard, a ASPCA representative, or 100 cockroaches on the bus as well. If you want to start making assumptions, go ahead, but i'd stick with what the original problem states as facts, and stop there.


Never ascribe to malice that which can be adequately explained by stupidity.
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18670
Well, the original problem also doesn't mention that the girls have two legs apiece. That seems obvious, but the problem did state that each cat has four legs, which seems equally obvious. The omission seems odd. For all we know, some of the girls could be amputees.

[Fred]: Perhaps one of the seven girls IS the bus driver.

Each girl already has 392 cats to deal with, and now one is expected to drive as well?
[ December 31, 2007: Message edited by: Jim Yingst ]

"I'm not back." - Bill Harding, Twister
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56185
    
  13

What about the seats on the bus? Do they not have legs too! This unreasonable prejudice against seats has got to stop!


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17231
    
    1

A bus doesn't have any legs.

But if you wanted to know how many total legs on all the cats that happen to also be in the bus then that is

7*7*7*4 for the big cats
7*7*7*7*4 for the smaller cats
=

10976

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Aryan Khan
Ranch Hand

Joined: Sep 12, 2004
Posts: 289
Hi,

Mark why you left out the 14 gals

My answer 14 legs....who cares for the cats, driver or bus.

Aryan
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Try this
 
Similar Threads
Multi Dimension Array Storing
Which bits to call on Event Dispatch Thread?
WA #1.....word association
Scrabble... it only takes a minute...
PA #1.....picture association