Question
Speed cameras read the time a vehicle passes a point (A) on the road and
then reads the time it passes a second point (B) on the same road (points A
and B are 100 metres apart). The speed of the vehicle is calculated using:
100
speed = (metres/sec)
(time at point B – time at point A)
The maximum allowed speed is 100 kilometres per hour. 500 vehicles were
monitored using these cameras over a 1 hour period.
Write an algorithm, using a flowchart, which:
• inputs the start time and end time for the 500 vehicles that were
monitored
• calculate the speed for each vehicle using the formula above
• outputs the speed for each vehicle and also a message if the speed
exceeded 100 km/hour
• output the highest speed of all the 500 vehicles monitored
The answer but why speed = speed * 3.6 ?????
Speed cameras read the time a vehicle passes a point (A) on the road and
then reads the time it passes a second point (B) on the same road (points A
and B are 100 metres apart). The speed of the vehicle is calculated using:
100
speed = (metres/sec)
(time at point B – time at point A)
The maximum allowed speed is 100 kilometres per hour. 500 vehicles were
monitored using these cameras over a 1 hour period.
Write an algorithm, using a flowchart, which:
• inputs the start time and end time for the 500 vehicles that were
monitored
• calculate the speed for each vehicle using the formula above
• outputs the speed for each vehicle and also a message if the speed
exceeded 100 km/hour
• output the highest speed of all the 500 vehicles monitored
The answer but why speed = speed * 3.6 ?????