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
Get step-by-step solutions from verified subject matter experts
