Question: 3. Create a custom Python module named functions.py. This module must contain two functions: one that converts from Feet to Meters and one that converts

 3. Create a custom Python module named functions.py. This module must

3. Create a custom Python module named functions.py. This module must contain two functions: one that converts from Feet to Meters and one that converts from Meters to Feet. These functions must be named convertmf (used when Fis selected) and convertfm ( used when M is selected). Write a program named program53.py, which imports the functions from module functions.py. The program's main() should prompt the user to specify M or Fas choices then call the appropriate function which was imported. Conversion accuracy should use full precision ( 5 decimal places ) for the calculations, and display then print the result to two decimal places. Enter the length to convert: 25.75 Enter Mor F to convert enterted value to Meters or Feet: M The length 25.75 Feet converts to 7.85 Meters. Enter the length to convert: 25.75 Enter M or F to convert enterted value to Meters or Feet: F The length 25.75 Meters converts to 84.48 Feet. Tip: Use the import keyword: import functions from * . The call the functions, would be functionname()

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!