If you're seeing this message, it means we're having trouble loading external resources on our website.

If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.

Main content

Procedures with parameters

Problem

Kash is writing code to calculate formulas from his physics class. He's currently working on a procedure to calculate average speed, based on this formula:
Average speed=Total DistanceTotal Time
Which of these is the best procedure for calculating and displaying average speed?
Choose 1 answer:
🤔