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

I would like to know how to type up Problems 3 and 4 into Matlab please. Please

ID: 3863166 • Letter: I

Question

I would like to know how to type up Problems 3 and 4 into Matlab please. Please provide how the commands were typed along with the solution.

Problem 3) Write a function that accepts temperature in degrees Fahrenheit (oF) and computes the corresponding value in degree Celsius (oC). The relation between the two is OC (OF-32) Be sure to test your function Problem 4) An object thrown vertically with a speed vo reaches a height h at time t where gt Write and test a function that computes the time trequired to reach a specified height h, for a given value Vo The function's inputs should be h, vo and g. Test your function for the case where h 100 m, v 50 m/s, and g 9.81 m/s2 Interpret both answers 7 32

Explanation / Answer

solution--

Here is the simple code for the problem

3.

fehren=input('enter the temperature in fehren that you want to convert'); % totake the input from the user

cel=5/9(fehren-32);             % formula for converting

fprintf('The temperature in degrees C is %.2f ',cel); % priting the final answer

4.

h=input('enter the height'); % to take the input from the user
v0=input('enter the v0'); % to take the input from the user
g=input('enter the g'); % to take the input from the user
t1=(v0+sqrt(square(v0)-(2*h)/g))/g;
t2=(v0-sqrt(square(v0)-(2*h)/g))/g;


fprintf('The time can be %d',t1); % printing the final answer
fprintf('or can be %d',t2); % printing the final answer