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

Instructions: 2. Read the section titled \"Programming including the subsections

ID: 3886629 • Letter: I

Question

Instructions: 2. Read the section titled "Programming including the subsections: a. Flow Control b. Other Data Structures c. Scripts and Functions Use MIATLAB to write a program that solves the following problem. The rates of biological reactions are proportional to a rate constant k that changes with temperature according to the Arrhenius equation. k = k_0 e^-Q J RT For a certain reaction, Q = 8000 cal/mol R = 1.987 cal/mol K K_0 = 1200 min^-1 Write a program that calculates the values of k for temperatures from 100 K to 500 K, in 50-degree increments, The program should create a table of the results.

Explanation / Answer

**Function which calculates the value of K for a given temperature: arrehenius.txt

function result = arrhenius(temperature)
% Value of Q, R, Ko
q = 8000;
r = 1.987;
Ko = 1200;
% Calculating the power of eplison
epower = -(q/(r * temperature));
result = Ko * exp(epower);
end

**test.m file for testing

temp = 100;
i = 1;
results = [];
% Iterating the for loop until the temperature is 500
while temp <= 500
% Storing the return value in result by calling the function arrhenius
result = arrhenius(temp);
% Storing the result in a vector called results
results(i) = result;
% Incrementing the temperature by 50 degrees
temp = temp + 50;
i = i +1 ;
end
temp = 100;
% Printing the results for all the temperature
for i = 1:length(results)
fprintf("Value of k at temperature %d is %d ", temp, results(i));
temp = temp + 50;
end

In the command prompt just type test to execute and see the output.

**Comment for any further help or queries