Question: Write a program that contains the following two functions: # Converts from feet to meters def footToMeter(foot): # Converts from meters to feet def
Write a program that contains the following two functions: # Converts from feet to meters def footToMeter(foot): # Converts from meters to feet def meterToFoot(meter): The formulas for the conversion are: foot meter / 0.305 meter = 0.305 * foot Write a main function that invokes these functions to display the below table. Use format string to format all output as shown in the table. Save your file as text file. Here a sample run: Feet 1 2 3 3456 TS L 4 5 7 8 9 10 Meters 0.305 0.610 0.915 1.220 1.525 1.830 2.135 2.440 2.745 3.050 1 Meters 20 25 30 35 40 45 50 55 60 65 Feet 65.57 81.97 98.36 114.75 131.15 147.54 163.93 180.33 196.72 213.11
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
