Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

please shoe excat code! thanks! Your program will prompt the user for a floating

ID: 3874760 • Letter: P

Question

please shoe excat code! thanks!

Your program will prompt the user for a floating-point value representing a distance in rods. You will reprint that value along with that value converted to the following values. The most important value is the time to walk the portage. emeters . fect e miles · furlongs the time in minutes to walk that distance You can find these measures on the web, but so everyone is using the same conversions: 1 rod 5.0292 meters 1 furlong 40 rods 1 mile 1609.34 meters 1 foot-0.3048 meters average walking speed is 3.1 miles per hour Assignment Notes: 1. To clarify the project specifications, sample output is appended to the end of this document. 2, Round all floating-point output to three places, i.e. use round ( x, 3 ) . S. The input function is used to accept a response from the user. The function accepts a string (a sequence of characters between quotes) as a prompt to display to the user. It then waits until the user types a response (terminated by the user touching the Enter key). Finally the function returns the user's response as a string If the user's response is supposed to be processed as a numeric value, the returned string must be converted into a number. When working with floating point values, a string is converted into a floating point number using the float function. The function accepts a string as its argument and returns the floating point number which the string represents. A typical interaction would be something like: num strinput "Please enter anumbe: numfloat = float( num str ) - 6· print function is used to display any combination of variables, values and strings in The the output window. Each item to be displayed must be separated from another item by a comma. All the items will be displayed together, followed by a new line. For example:

Explanation / Answer

print("Please input rods: ") #Just for information
x=float(input()) #Here I take the input typecast it to float and assign it to x

print("The conversion to meteres is "+str(x*5.0292)) #Rest all the conversions are done as per
print("The conversion to feet is "+str(x*5.0292/0.3048)) #specified in the quetion. They have been done
print("The conversion to miles is "+str(x*5.0292/1609.34)) #in one line along with the print. If you want you
print("The conversion to furlongs is "+str(x/40)) #can do with a number of variables but these
print("The conversion to minutes to walk the distance is "+str(((x*5.0292/1609.34)/3.1)*60)) #conversions are simple so dont really require differnt variables to do so.