Question: C++ Code a menu that allows the user to choose between finding the midpoint of or the distance between two points. The final option should
C++
Code a menu that allows the user to choose between finding the midpoint of or the distance between two points. The final option should be to quit. Allow them to enter menu options by either the number or a capitalized letter (make each option's special letter unique!). As an example, you might have the program interaction look something like (the parts in this color are typed by the user): $ /pt_menu.out Welcome to the Point Menu Program!!! 1) calculate Distance between two points 2) calculate Midpoint of two points 3) Quit Choice: n I'm sorry, that choice is invalid! Please try to read/type more carefully next time... 1) calculate Distance between two points 2) calculate Midpoint of two points 3) Quit Choice: mid Where is your first point? (3.4, 12.2) Where is your second point? (13.4, 12.2) The midpoint of the line segment from (3.4, 12.2) to (13.4, 12.2) is (8.4, 12.2). 1) calculate Distance between two points 2) calculate Midpoint of two points 3) Quit Choice: DStep 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
