Question: Problem Two While loop and fprintf: Use MATLAB to solve the following problem. Your MATLAB script will prompt the user to enter a value in
Problem Two While loop and fprintf: Use MATLAB to solve the following problem. Your MATLAB script will prompt the user to enter a value in miles per hour. The script will convert the miles per hour to feet per second. It will then use the fprintf command to print: xxx.xx miles/hour is the same as yyy.yy feet/second Where xxx.xx and yyy.yy are the formats for the mph and fps values The script will continue to prompt the user for another value until a negative value is entered. Include a test run of your script. Copy and paste the command window information to the bottom of your script as comments
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
