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
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)
Step by Step Solution
3.44 Rating (160 Votes )
There are 3 Steps involved in it
The program is computing the time ... View full answer
Get step-by-step solutions from verified subject matter experts
