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

Please answer both 6 and 7 using MATLAB coding. Thank you! Write a program named

ID: 3831494 • Letter: P

Question

Please answer both 6 and 7 using MATLAB coding. Thank you!

Write a program named test1.m that uses the function fymby, from Problem 1, and a for loop to produce a tabular output of your age in the years from 2009 to 2050. Output should look like this: % In 2015 I will turn 22. In 2016 I will turn 23. In 2017 I will turn 24. In 2018 I will turn 25. In 2019 I will turn 26. In 2020 I will turn 27. Write a program named test2.m that uses the function c2f, from Problem 2, and a for loop to produce a tabular output of temperatures in Celsius and Fahrenheit for T_c from 32degree to 44degree in steps of 2degreeCelsius. Output should look like this:

Explanation / Answer

Problem 1 and 6

Save this in file yfmby.m

function y=yfmby(year)
y = year-1993;
end

% ------------------------

keep this in test1.m

for i = 2009:2050
diff = yfmby(i);
fprintf("In %d I will turn %d. ", i, diff);
end