Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started