Newton's law of cooling says that the temperature of a body changes at a rate proportional to the difference between its temperature and that of the surrounding medium (the ambient temperature);
dT/dt = -K(T - Tₐ)
where T = the temperature of the body (°C), t = time (min), k = the proportionality constant (per minute), and Tₐ = the ambient temperature (°C).
Suppose that a cup of coffee originally has a temperature of 68 °C. Use Euler's method to compute the temperature from t = 0 to 10 min using a step size of 1 min if Tₐ = 21 °C and k = 0.017/min.