File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Other » Programming Diversions
Bookmark "Average Speed" Watch "Average Speed" New topic
Author

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: http://aspose.com/file-tools
 
subject: Average Speed
 
Similar Threads
IT Consulting rate
Speedway Trials
How many miles do you drive to work?
Is Pakistan planning for another Kargil (War)?
Is it a wise decision for a married guy to go to US on a H1-B