Problem 1: 1a. Fang (Flora) Yiu % 1 pt 1b. automated % 1 pt 1c. Matrix Laboratory % 2 pts; 1 for eack blank 1d. False % 1 pt 1e. x=17 % 1 pt 1f. clear x % 2 pts 1g. x=9/(3-2*(4+5)); % 3 pts 1h. 3 % 2 pts 1i. 1 % 2 pts 1j. hi! % 2 pts 1k. mod(5,4) % 2 pts the remainder is 1 % 1 pt 1l. True % 1 pt Problem 2: prompt the user for an input Repeat this process four times Label inputs as v1, v2, v3 and v4 respectively Compare v1 and v2 if v1 is larger, store v1 in v5 if v2 is larger, store v2 in v5 Compare v3 and v4 if v3 is larger, store v3 in v6 if v4 is larger, store v4 in v6 Next, compare v5 and v6 if v5 is larger, v5 is the max if v6 is larger, v6 is the max %grading guide -correctness: 10 pts -correct use of pseudocode and good style: 7 pts -miscellaneous: 3pts -write an algorithm that could be implemented in any language. -code specific in Matlab -10 -redundency -3 Problem 3: light_box=10; heavy_box=50; x=input('Please input the weight of the box: '); charge=2*x; if (xheavy_box) class=' Heavy Box'; else class=' Medium Box'; end if x>heavy_box if rand>0.5 class=strcat('very', class); charge=charge+1.5*x; end end disp(['the shipping charge is ', num2str(charge)]); % grading guide -use named constants: 1 pt -prompt the user to input the weight: 2 pts -determine the initial classification by the selection statements: 10 pts -store the initial classification as a string: 2 pts -correctly modify the classification for heavy boxes: 5 pts (if very heavy) -correctly use the string concatenate for the modification of the classification: 5 pts (or use disp to correctly handle string concatenation) -correctly write the expression of the shipping charge: 1) rand 5pts; 2) correct expressions 5 pts -correctly report the shipping charge: 5 pts -small sytax error -2pts or -1 pt depending on the level of errors Problem 4: v1=input('Please input one boolean value '); v2=input('Please input another boolean value '); if v1 % 2 pts if v2 % 2 pts result='false'; % 2 pts else result='true'; % 2 pts end else if v2 % 2 pts result='true'; % 2 pts else result='false'; % 2 pts end end disp('The result is ', result) % 6 pts %grading guide -using operators other than = in selection statements -1 pt for each -using assignment = in selection statements -2 pts for each -giving results inside the selection statements -2 pts -completely incorrect -20pts