Question: 2. (12pts) The code below contains exactly six errors. For each error: (1) circle the error, (2) write a modification of the code that fixes

 2. (12pts) The code below contains exactly six errors. For each

2. (12pts) The code below contains exactly six errors. For each error: (1) circle the error, (2) write a modification of the code that "fixes the error (there are multiple ways to fix each exror - just make a change that allows the code to run without generating an error). You do not need to indicate the error message that MATLAB prints. disp("find the sum") number=100; numbersum=3number+2; disp("Matrix operation and modification") mat=(1:3; 2:4; 11 12 13; 31 32 38); A-mat (1:3, 2:3); B-mat (2:4, 2:3); C-AB; mat (1, 2)=[1 2]; disp("Set money for occupations!") disp("A. Banker") disp("B. Teacher") user_input input('Enter the letter A or B., ); if user_input money - 4000; occupation=Banker, else money 3000; occupation Teacher": end disp (mooney)

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!