Question: please help. Thanks! 1) (2 points) Your task is to indicate what must go in place of the XXX in order to print the described

please help.
Thanks!  please help. Thanks! 1) (2 points) Your task is to indicate

1) (2 points) Your task is to indicate what must go in place of the XXX in order to print the described output with the following code: num=13; fprintf("Number:XXX', num); Output: Number:13 Note that indicates that there will be an actual space - so, it would look like this: Number: 13 Where there are two spaces between the colon ':' and the 'T'. 2) (5 points) You wish to write a function that will take two inputs (number and choice) that will return one answer (called answer). It will return number* number if choice is 1, pi*number* number if choice is 2 and 0 if choice is anything else. Using any method you'd like, write a function that will accomplish this task. I've started it for you below. function end 3) (3 points) The code below is intended to display "Circle" if the user enters a 1, "Square" if the user enters a 2, and "Triangle" if the user enters anything else. Indicate the THREE errors in the code below and provide corrections. selection = input('Please select a number'); if (selection = 1) disp('Circle'); else if (selection == 2) disp('Square'); otherwise disp('Triangle'); end

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!