Write an algorithm to calculate speed where distance and speed is given as inputs. [Distance = Speed x Time]
Answers
Answered by
0
When an object moves in a straight line at a steady speed, we can calculate its speed if we know how far it travels and how long it takes. This equation shows the relationship between speed, distance traveled and time taken:
Speed is distance divided by the time taken.
For example, a car travels 30 kilometers in 2 hours.
Its speed is 30 ÷ 2 = 15km/hr.
Formula used :
Distance = Speed * Time
Time = Distance / Speed
Speed = Distance / Time
Examples:
Input : distance(km) : 48.5 time(hr) :
Answered by
0
Answer:
Explanation:
here distance and speed is given as inputs. [Distance = Speed x Time
Similar questions