Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Questions 10- 12 deal with the incomplete function below, which calculates and c

ID: 3584890 • Letter: Q

Question

Questions 10- 12 deal with the incomplete function below, which calculates and creates a multiplication table that can have a maximum size of "maxsize", but only the first "num to calc" elements are calculated or populated in the table. (6.25 points each) function res - my function (num to calc, maxsize) tablelzeros (maxsize); for ii - 1:maxsize if ii 10) break; en %end If Statement for = 1 : maxsize break; end %end if statement table1 (11.22) = 11) end %end for loop end %end for loop 12) end %end function 10) How would you finish writing this condition so that you never calculate or populate more than "num to calc" numbers in the multiplication table? A) > maxsize B)

Explanation / Answer

10) C ( ii< numtocalculate)

The table should be always less than the number to be calculated

11)A

In multiplication table, we just need to multiply the number repeatedly

12)D

There are no variables defined result, output, and res will store the my_function return value. So, we need to return the table1