This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Programming Diversions and the fly likes Correct direction Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Other » Programming Diversions
Bookmark "Correct direction" Watch "Correct direction" New topic

Correct direction

Sameer Jamal
Ranch Hand

Joined: Feb 16, 2001
Posts: 1870
Four cars, A, B, C, and D, leave the same point, each traveling a different direction-North, South, East or West-at the same speed.
After one hour, car A makes a right turn, B makes a left turn, C makes a right turn, and D makes a left turn. After another hour, car A, B, and C all turn left, while car D turns right. After one more hour, car A turns left, cars B and C turn right and car D turns left.

If car A begins by traveling North and car C begins by traveling South, which one of the following scenarios is possible?

Choice 1
Car C ends up facing East
Choice 2
Car B ends up facing West
Choice 3
Car A ends up facing South
Choice 4
Car D ends up facing East
Choice 5
Car B ends up facing North
Arjunkumar Shastry
Ranch Hand

Joined: Feb 28, 2005
Posts: 986
Choice 5.

Namma Suvarna Karnataka
Sameer Jamal
Ranch Hand

Joined: Feb 16, 2001
Posts: 1870
You are in the right direction
Vishnu Prakash
Ranch Hand

Joined: Nov 15, 2004
Posts: 1026
I feel choice 1 is correct and my friend feels choice 3 is correct.

Servlet Spec 2.4/ Jsp Spec 2.0/ JSTL Spec 1.1 - JSTL Tag Documentation
Dharam Singh
Ranch Hand

Joined: Jul 04, 2005
Posts: 162
What does your girlfriend feel?

Powered by Sonia
Randall Kippen

Joined: Oct 18, 2005
Posts: 15
If velocity is 0, then Choices 2 & 4 is possible.
What is the rule about crashing?
I agree. Here's the link:
subject: Correct direction
jQuery in Action, 3rd edition