Quote:
Originally Posted by ThePerfectHacker 2)Let two trains be located 100 miles from eachother. The trains travel to eachother at 30 miles per hour. At this moment a bird flys of one train and travels to the other at the speed of 60 miles per hour, the moment it reaches the train it turns around and goes back. It does it back and forth until the trains crash and annihilate the bird. Find the total distance the bird traveled. |
Dist. = speed x time
For one train to complete the journey:

mins
But now we have 2 trains, going at the same speed, so they will meet at 50 miles. So for the trains to meet each other will take 100 mins.
-----
Now for the bird.
The bird has 100 minutes to go as far as he can before his imminent and brutal death... (Oh the calamity)
EDIT: This looks like such a small distance. Something doesn't seem right.
EDIT2: Messed up with the time, let me correct it.
EDIT3: There we go, 100 miles
__________________
If you need more than 3 levels of indentation, you're screwed anyway, and should fix your program. - Linus Torvalds
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.