# s/w engineer

A software engineer starts from home at 3pm for evening walk. He walkspeed of 4kmph on level ground and then at a Speed of 3kmph on the uphill and then downhill at a speed of 6kmph to the level ground and then at a speed of 4kmph to the Home at 9pm.
what is the distance on one way?

###### Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Commented:
There are too many variables to solve this riddle, or important information is missing ...

Does he take the same road back ?
How far does he go uphill/downhill ?
Author Commented:
yes he takes the same road back and rest i dont know.we will have 2 take average speed?
Commented:
You can't take the average speed if you don't know what part of the distance was uphill.

If the distance uphill is the same as the distance between his home and the hill, then here's the solution :

(((4 + 3 + 6 + 4) / 4) * 6) / 2

Or :

12,75 km
Commented:
Since time uphill is twice the time downhill but distance is the same

Calculate the average speed for time spent walking up then down
U - Time spent walking up hill
P - Time spent going down hill
U = 2P

distance walked uphill then down
3kmph * U + 6kmph * P
3kmph * 2P + 6kmph * P
6kmph * 2P
12kmph * P

Time spent walking up then down
U + P = 2P + P = 3P

Average speed for the uphill then downhill
Distance / Time

(12kmph * P) / 3P
4kmph

Thus he average 4kmph for the trip of 6 hours regardless of the distance walked Level, Uphill or Downhill
so he walked 24 km

mlmcc

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Commented:
Ignore my solution !!! It's wrong !! mlmcc's solution is the correct one !
Commented:
I had the same thought at first until I tried an example and it came out at 24 km.

mlmcc
###### It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Puzzles / Riddles

From novice to tech pro — start learning today.