Determine by direct integration the centroid of the area shown. Express your answer in terms of a and b.

BE 1500 – Fall 2016 Quiz 5 1. Write a script that produces the following output. The script should iterate from 1 to 9 to produce the expressions on the left, perform the operation to get the results shown on the right, and print the output below. Your code needs to use either str2num or num2str or both and must utilize at least one loop. 1 x 8 + 1 = 9 12 x 8 + 2 = 98 123 x 8 + 3 = 987 1234 x 8 + 4 = 9876 12345 x 8 + 5 = 98765 123456 x 8 + 6 = 987654 1234567 x 8 + 7 = 9876543 12345678 x 8 + 8 = 98765432 123456789 x 8 + 8 = 987654321 k='123456789';%Initialize my string m=length(k);%Define my stopping point for i=1:m %Loop through the string l=str2n