Question: Write a menu that prompts the user for a measurement conversion as following: 1. Convert feet to meter 2. Convert meter to feet 3. Convert

Write a menu that prompts the user for a measurement conversion as following: 1. Convert feet to meter 2. Convert meter to feet 3. Convert inch to centimeter (cm) 4. Convert centimeter to inch 5. Quit Enter your choice: The formula for the conversions: m = 3.2808 ft 1 ft = 1 / 3.2808 m 1 in = 2.54 cm 1 cm = 1 / 2.54 in Use Multi-branch if-else statements for this problem. Use a string format function to print out the results. If the choice is not 1-5, print "Please enter 1-5 only" Running examples: 1. Convert feet to meter 2. Convert meter to feet 3. Convert inch to centimeter (cm) 4. Convert centimeter to inch 5. Quit Enter your choice 1-5: 1 Enter feet: 5 5 feet is 1.52 meter 1. Convert feet to meter 2. Convert meter to feet 3. Convert inch to centimeter (cm) 4. Convert centimeter to inch 5. Quit Enter your choice 1-5: 2 Enter meter: 5 5 meter is 16.40 feet 1. Convert feet to meter 2. Convert meter to feet 3. Convert inch to centimeter (cm) 4. Convert centimeter to inch 5. Quit Enter your choice 1-5: 3 Enter inch: 5

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 Mathematics Questions!