Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Other » Programming Diversions
Bookmark "Correct direction" Watch "Correct direction" New topic
Author

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
Greenhorn

Joined: Oct 18, 2005
Posts: 15
If velocity is 0, then Choices 2 & 4 is possible.
What is the rule about crashing?
 
wood burning stoves
 
subject: Correct direction