This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Programming Diversions and the fly likes Average Speed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Other » Programming Diversions
Bookmark "Average Speed" Watch "Average Speed" New topic

Average Speed

Sameer Jamal
Ranch Hand

Joined: Feb 16, 2001
Posts: 1870
It was a long drive. I drove 60 miles at 30 miles per hour and then an additional 60 miles at 50 miles per hour. What was my average speed over the 120 miles.
Jayesh Lalwani
Ranch Hand

Joined: Nov 05, 2004
Posts: 502
Is this a homework for your kid, or is there a trick that I'm missing/

60 miles at 30mph will take 2 hrs
60 miles at 50mph will take 1.2 hrs

total time = 3.2 hrs

average speed = 120/3.2 = 37.5mph
I agree. Here's the link:
subject: Average Speed
Similar Threads
Is it a wise decision for a married guy to go to US on a H1-B
Speedway Trials
Is Pakistan planning for another Kargil (War)?
How many miles do you drive to work?
IT Consulting rate