The Beaufort Wind Scale is used to characterize the strength ofwinds. The scale uses integer values and goes from a force of 0,which is no wind, up to 12, which is a hurricane. The followingscript first generates a random force value. Then, it prints amessage regarding what type of wind that force represents, using aswitch statement. You are to rewrite this switch statement as onenested if-else statement that accomplishes exactly the same thing.You may use else and/or elseif clauses.
ranforce = randi([0, 12]);
switch ranforce
case 0
disp(‘There is no wind’)
case {1,2,3,4,5,6}
disp(‘There is a breeze’)
case {7,8,9}
disp(‘This is a gale’)
case {10,11}
disp(‘It is a storm’)
case 12
disp(‘Hello,
PayPal Gateway not configured
PayPal Gateway not configured