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

2,3 and 4 please and the is for the program (matlab) 216 16-1 1.74+26 269.8+3In(

ID: 3877835 • Letter: 2

Question

2,3 and 4 please

and the is for the program (matlab)

216 16-1 1.74+26 269.8+3In(51) b. 6.4+5.23 1.32 C. Define a=24.125487, b=35, c-22.316548, and d-19 in the editor window. write fprintf commands to display the following information 2. Use those values to a. The value of a is 24.125. b The value of b is 35.0 and c is 22.3. c. C is equal to 22.3165 and B is equal to 35. d. C is less than D. Chemical reaction rates are proportional to a rate constant k that changes with temperature according to the Arrhenius equation 3. For a given reaction, Q-8000 cal/mol, Re1.987 cal/(mol K), and ko#1200 min Find the value of k for a temperature of 400K. Use an fprintf command to display your final answer with 4 decimal aces The monthly payment M of a loan amount P for y years and interest rate r can be calculated by the formula 4. P (i2) Calculate the monthly payment of a $90,000 loan for 20 years and interest rate of 5.5 % (reo.o55). Use an fprintf command to display your final answer with 2 decimal places. O Type here to seardh

Explanation / Answer

% code for problem 2

% declaring variables
a = 24.125487;
b = 35;
c = 22.316548;
d = 19;

% %.3f gives float have 3 decimals after dot
fprintf('The value of a is %.3f. ',a);

% %.1f gives one decimal after dot
fprintf('The value of b is %.1f and c is %.1f. ',b,c);

% %.4f gives 4 decimals after dot and %d gives the integer value of number
fprintf('C is equal to %.4f and B is equal to %d. ',c,b);

% just prints the string in quotes
fprintf('C is less than D.')

OUTPUT

The value of a is 24.125.
The value of b is 35.0 and c is 22.3.
C is equal to 22.3165 and B is equal to 35.
C is less than D.

% code for problem 2

% declaring variables
a = 24.125487;
b = 35;
c = 22.316548;
d = 19;

% %.3f gives float have 3 decimals after dot
fprintf('The value of a is %.3f. ',a);

% %.1f gives one decimal after dot
fprintf('The value of b is %.1f and c is %.1f. ',b,c);

% %.4f gives 4 decimals after dot and %d gives the integer value of number
fprintf('C is equal to %.4f and B is equal to %d. ',c,b);

% just prints the string in quotes
fprintf('C is less than D.')

OUTPUT

The value of a is 24.125.
The value of b is 35.0 and c is 22.3.
C is equal to 22.3165 and B is equal to 35.
C is less than D.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote