Question
From my previous question, one person helped me write down all C++ code for my assignment. https://www.chegg.com/homework-help/questions-and-answers/english-metric-length-conversion-write-program-convert-feet-inches-meters-centimeters-vice-q31518379 But the Output is a little bit different
From my previous question, one person helped me write down all C++ code for my assignment.
https://www.chegg.com/homework-help/questions-and-answers/english-metric-length-conversion-write-program-convert-feet-inches-meters-centimeters-vice-q31518379
But the Output is a little bit different than what I expected.
The Output must include the input checking( which means for Choice 1 and 2, when it asks for meters, feet or inches value it must be positive), and choice 3 it should not just quit the program immediately.
This is the output that I'm looking for:
users 01716382 documents visual studio 2017 Projects Project Debug P Project!... Menu 1. Convert length form Metric to English 2. Convert length form for English to Metric 3. Quit the program Please enter your choice: 1 Enter a number of meters as a double: 75 75.00 meters corresponds to 246 feet, 0.76 inches Menu 1. Convert length form Metric to English 2. Convert length form for English to Metric 3. Quit the program Please enter your choice: 1 Enter a number of meters as a double: -75 Enter a positive value for meters: 75 75.00 meters corresponds to 246 feet, 0.76 inches Menu 1. Convert length form Metric to English 2. Convert length form for English to Metric . Quit the progranm lease enter your choice: 2 Enter feet as an integer: 246 nter inches as a double: 0.76 246 feet, 0.76 inches correspond to 75.00 meters Menu 1. Convert length form Metric to English 2. Convert length form for English to Metric 3. Quit the program Please enter your choice: 2 Enter feet as an integer: -246 Enter a positive value for feet: 246 Enter inches as a double: -0.76 Enter a positive value for inches: 0.76 246 feet, 0.76 inches correspond to 75.00 meters Menu . Convert length form Metric to English 2. Convert length form for English to Metric 3. Quit the program Please enter your choice: 3 Thank you. Have a nice day! Menu .. Convert length form Metric to English Convert length form for English to Metric . Quit the program choice: 4 Please enter Not a Valid Choice. hoose again. Menu 1.Convert length form Metric to English Convert length form for English to Metric . Quit the program Please enter your choiceStep 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