File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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
It's not a secret anymore!