It's not a secret anymore!
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
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
It's not a secret anymore!