Question: MATLAB CODE HELP getUserValue.m getUserValue has three parameters: prompt: A string that is displayed to the user. This should be passed to your input function.

MATLAB CODE HELP

getUserValue.m

getUserValue has three parameters:

prompt: A string that is displayed to the user. This should be passed to your input function.

lower: The lowest number that the user is allowed to input

upper: The highest number that the user is allowed to input

This function should pass the prompt (which is a string such as enter a number between 1 and 10) to the input function. Then determine whether the number that the user entered is between lower and upper, inclusive of lower and upper. If it is not, then ask the user again until a valid number is entered.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!