Question: Assignment M2_MatLab Input/Output with Loops (Skill-Based Assignment, Individual, 20 points) Your local coffee shop brews coffee at a temperature of 185 F and serves it

 Assignment M2_MatLab Input/Output with Loops (Skill-Based Assignment, Individual, 20 points) Your

Assignment M2_MatLab Input/Output with Loops (Skill-Based Assignment, Individual, 20 points) Your local coffee shop brews coffee at a temperature of 185 F and serves it to you immediately thereafter. Assume that there is no temperature decrease between the coffee in the dispenser and the coffee in the cup when you receive it. Most often, it is too hot to drink when you receive it, so you wait for it to cool to your preferred drinking temperature. The rate of cooling is given by Newton's law of cooling, as follows: Where Troo room temperature -68 F To (coffee) initial temperature of the coffee, F Toffee temperature of the coffee, F k -cooling rate constant-0.01 min ttime, min Part 1: Write a MatLab script that will use the equation shown above to generate a vector of coffee temperatures for a time range of 0 to 30 minutes in increments or time steps of 1 minute. Write the output to a.txt file, with temperature values accurate to 1 decimal place. Part 2: You go to the coffee shop with friends, and each friend likes to drink their coffee at a different temperature. Write a program that will generate and plot a cooling curve for the temperature of the coffee as a function of time. Use the temperature data from Problem #1 as input, to generate the plot over the same time interval, i.e., 0 to 30 minutes. A generic review of plotting commands is shown at the end of this assignment. Part 3: Modify your program to warn the user when the coffee is too hot or too cold to enjoy, i.e., when the temperature is > 140 or

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!