permaculture playing cards*
The moose likes Meaningless Drivel and the fly likes Try this Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Other » Meaningless Drivel
Bookmark "Try this" Watch "Try this" New topic
Author

Try this

Aryan Khan
Ranch Hand

Joined: Sep 12, 2004
Posts: 290

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
Bartender

Joined: Sep 18, 2000
Posts: 582
    
    7

Funny i get 10992
Aryan Khan
Ranch Hand

Joined: Sep 12, 2004
Posts: 290

One of the above is right...-- ...
Others keep trying
Frank Silbermann
Ranch Hand

Joined: Jun 06, 2002
Posts: 1390
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
Bartender

Joined: Sep 18, 2000
Posts: 582
    
    7

and the bus driver?
fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 11499
    
  16

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.


There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18671
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: 61769
    
  67

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


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17260
    
    6

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: 290

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://aspose.com/file-tools
 
subject: Try this