wood burning stoves 2.0*
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 Murach's Java Servlets and JSP this week in the Servlets 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
Don't get me started about those stupid light bulbs.
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