Must be done in MATLAB
The Beaufort Wind Scale is used to characterize the strength of winds. The scale uses integer values ranging from 0 to 12. A force value of 0 indicates no wind, 1 through 6 is a breeze, 7 through 9 is a gale, 10 through 11 is a storm, and 12 is a hurricane.
Write a script that prompts a user for a force value and then sends the value to a function named wind_scale. Write the function wind_scale, which receives the force value as an input argument. The function then prints a message regarding what type of wind that force represents. Print an error message if the user entered a force value outside of the Beaufort Wind Scale range. Use a single switch statement within the function.
Note: For publishing purposes, comment out the "input" line and manually assign a force value of 5.
Get Answers For Free
Most questions answered within 1 hours.