Introduction to Computer Programming (SKKC 1533)
Assignment 6 CO2 (05 Oct 2017) Name : ________________________________
New temperature of a body that decreasing for every minute can be estimated by the
following equation:
Tnew = Told - k(Told - Ta)
where Tnew is the new temperature, Told is previous temperature, Ta is the ambient
temperature and k is the proportional constant. Suppose a metal ball heated to 80oC is
dropped at time, t = 0 minute into water that is held constant at Ta = 20oC.
Formulate algorithm and flowchart of loop structures to compute temperature of the ball for
every minute until Tnew < 30oC.
Answer: