Course Content
Introduction to JavaScript
Introduction to JavaScript
Task - Calculate the Speed of a Car
Swipe to start coding
Youβre helping to create a speed detector for highway patrol! The detector works by measuring how far a car travels and how long it takes. Your job is to calculate the carβs speed based on this data.
A car passes the speed detector and is recorded traveling a distance of 100 meters in 5 seconds.
Your task is to calculate and output its speed display the result in the console. The speed can be calculated by dividing the amount of distance covered by the time taken to cover that distance.
python
Solution
Thanks for your feedback!
Task - Calculate the Speed of a Car
Swipe to start coding
Youβre helping to create a speed detector for highway patrol! The detector works by measuring how far a car travels and how long it takes. Your job is to calculate the carβs speed based on this data.
A car passes the speed detector and is recorded traveling a distance of 100 meters in 5 seconds.
Your task is to calculate and output its speed display the result in the console. The speed can be calculated by dividing the amount of distance covered by the time taken to cover that distance.
python
Solution
Thanks for your feedback!