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

Practice Challenge The relationship between the temperature of a fluid (t, in se

ID: 2085276 • Letter: P

Question

Practice Challenge The relationship between the temperature of a fluid (t, in seconds), temperature (T, in degrees Celsius), is dependent upon the initial temperature of the liquid (To, in Celsius) and the cooling constant (k, in hertz); the relationship is given by: Choose a fuid Ask the user the following questions: ADC From a menu, choose fluid ABC, FGH, or MNO. Enter the initial fluid temperature, in units of degrees Celsius.FH Enter the time, in units of minutes. MING Enter the ambient air temperature, in units of degrees Celsius. I Enter the following data into the program. The vector contains the cooling constant (k, units of hertz) corresponding to the menu entries. Kvalues [0 . 01 , 0 . 03 , 0·02] = Create a formatted output statement for the user in the Command Window similar to the following. The decimal places must match. ABC has temp 83.2 degrees Celsius after 3 minutes 12154

Explanation / Answer

clc;
clear all;
close all;
x=input(' choose abc or fgh or mno:','s');
to=input('enter intial fluid temperature in celcius:');
t1=input('enter time in minutes:');
ta=input('enter ambient temperature in celcius:');


abc=1;
fgh=2;
mno=3;
if x==1
k=0.01;
elseif x==2
k=0.03;
else
k=0.02;
end
t=ta+((to-ta)*exp((-k)*t1));
X = sprintf('%s has temp %f degrees celcius after %d minutes.',x,t,t1);
disp(X);

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