Type the function below into the Program Area of JES, then load the program and type into
Question:
Type the function below into the Program Area of JES, then load the program and type into the Command Area compute(). What is being computed by the following?
def compute():
distanceInMiles = 3279.8
metersPerMile = 1609.34
distanceInMeters = distanceInMiles * metersPerMile
turtleSpeed = 0.5
turtleSecondsM2S = distanceInMeters / turtleSpeed
print("Time in seconds")
print("for turtle to Miami to Seattle:")
print(turtleSecondsM2S)
turtleMinutes = turtleSecondsM2S / 60
print("In minutes:")
print(turtleMinutes)
turtleHours = turtleMinutes / 60
turtleDays = turtleHours / 24
turtleWeeks = turtleDays / 7
print("In Weeks:")
print(turtleWeeks)
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Introduction To Computing And Programming In Python A Multimedia Approach
ISBN: 9780134025544
4th Edition
Authors: Mark J. Guzdial, Barbara Ericson
Question Posted: