Tony crosses a street that is 'x'm long in 'y' minutes. Write an algorithm to compute his speed in km per hour, given x
and y.
Hint speed=distance/time
Answers
Answered by
1
Explanation:
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
Similar questions