Computer Science, asked by Ananya818698, 9 months ago

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 krishna6724
2

Answer:

6.15 hours rkjujejejdidudujdjdjdjfjd

Answered by mad210219
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=\frac{distance}{speed}

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