Question

Your friend was tasked with bringing the drinks to the tailgate party, but they forgot and left the drinks in their car and i

Scooling problem Ti= von WP TI= TCE k=0.35; t=(1/-k) *log ( (Tc-Tr) / (Ti-Tr)); time=10:25:2*t);
The second photo is what the Instructor gave us to start off with. You are able to select what you want when it comes to the “T”s but nothing to over exaggerated.
0 0
Add a comment Improve this question Transcribed image text
Answer #1

clc;
% Matlab script to calculate the time required to cool the drinks and then
% plot the cooling temperature vs time
% inputs
Ti = input('Enter the current temperature of the drinks (in F) : ');
Tr = input('Enter the temperature of the fridge (in F) :');
Tc = input('Enter your favorite drinking temperature (in F) : ');
k = 0.35;
% calculate the time required
t = log((Tc-Tr)/(Ti-Tr))/(-k);
fprintf('It should take %.2f hours to cool the drinks to %.2f degrees F if my fridge has a temperature of %.2f degrees F',t,Tc,Tr);
% create a time vector
time = (0:0.25:2*t);
% calculate the cooling temperature for the different time values
Tnc = Tr+(Ti-Tr) .* exp( -k.* time );
% plot the graph
plot(time,Tnc,'rd-');
title('Drink Temperature v/s Time');
xlabel('Time');
ylabel('Drink temperature');
%end of script

Output:

Enter the current temperature of the drinks (in F) 120 Enter the temperature of the fridge (in F) 60 Enter your favorite drin

Add a comment
Know the answer?
Add Answer to:
The second photo is what the Instructor gave us to start off with. You are able...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT