Question: This is a MATLAB practice code: please provide the code as well as comments on how you did it create a program to give user
This is a MATLAB practice code: please provide the code as well as comments on how you did it
create a program to give user 3 options . The 3 options are to convert from miles to kilometers, kilometers to miles, and to quit the program. when the user chooses the 1st or 2nd option , the program will repeat itself after the converting is done. you have to prompt the to get what they want and give them options to choose for the first two parts. like :"please enter which option you'd like?". when the user enters what they choose, the program will print the following: option 1 : A miles changes to B kilometers. option 2: A kilometers changes to B miles. option 3: quit A and B will change such that A is the value user inputs and B is the calculated output. This program must work for all possible inputs the user chooses such as floating point numbers, zeros, negative numbers, and very large integer numbers . Also this program must handle unexpected inputs such as if the user puts in an equation or enters an option other than the 3 options you have available , you must have a plan and the program should respond . be creative :)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
