Visit www.myprogramminglab.com to complete this Programming Challenge online and get instant feedback.
Distance Traveled Modification
The distance a vehicle travels can be calculated as follows:
Distance 5 Speed * Time
Write a method named distance that accepts a vehicle’s speed and time as arguments, and returns the distance the vehicle has traveled. Modify the “Distance Traveled” program (Programming Challenge 2) to use the method.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here