Question: Page 2 of 5 Program # 0 1 : Create a program that uses a separate module to convert feet to meters and vice versa.
Page of
Program #:
Create a program that uses a separate module to convert feet to meters and vice versa.
Console:
Feet and Meters Converter
Conversions Menu:
a Feet to Meters
b Meters to Feet
Select a conversion ab: a
Enter feet:
meters
Would you like to perform another conversion? yn: y
Conversions Menu:
a Feet to Meters
b Meters to Feet
Select a conversion ab: b
Enter meters:
feet
Would you like to perform another conversion? yn: n
Thanks, bye!
Specifications
The formula for converting feet to meters is:
feet meters
The formula for converting meters to feet is:
meters feet
Store the code that performs the feettometers and meterstofeet conversions in functions
within a module.
Store the code that displays the title in its own function, and store the code that displays the
menu in its own function, but store the rest of the code that gets input and displays output in the
main function.
Assume the user will enter valid data.
The program should round results to a maximum of two decimal places.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
