Mukta has to travel a distance of 250km by car. She knows that the speed limit is 80km/hr, but due to trafic
conditions, the average speed is 40km/hr. Write a Python script to find out how much time she will take to
cover the distance.
Answers
Answered by
2
Answer:
6.15 hours rkjujejejdidudujdjdjdjfjd
Answered by
4
Given:
speed limit is 80km/hr
To find:
How much time she will take to cover the distance.
Solution:
Distance=250km
Speed limit=80km/hr
Average speed=40km/hr
This means there may be fluctuations in speed but on an average the speed maintained is 40km/hr
So we take avg speed
Time=
Program:
Distance=250
Avgspeed=40
Time=Distance/Avgspeed
Print(“the time taken to reach the destination is %f hours”,Time)
Here we input the
Distance
And
Average speed
So as from basic formula we derieve time take
We print usint print() function
Output:
Time taken to reach destination is 6.25 hours
Similar questions