Mathematical Model for Loss of Heat
The loss of heat from a hot object depends upon the difference in temperature between the object and the air. An equation for this, to be plotted recursively through many steps in time, is:
Tnew = Told - m(Told - Tair)
In a Java program, plot this equation through a time period of 60 minutes using a loop. You may need to check out the loop syntax in the “How To Think Like A Computer Scientist” Textbook. Receive user input for m (which can be taken to represent the insulating capacity of the object's wrapping), Tair (the air temperature), and Told (which at the beginning of the run is the starting temperature of the hot object); the loop should be incremented by 1, representing a time step of 1 minute.
Hint: You won't have to store anything in an array, if you don't want to, and since the temperature of the hot sample must change constantly through time, you will have to update Told at the end of the loop, after the plot is performed; update it to the current Tnew, like this:
Told = Tnew;
Can anyone please help me because I am really new to this and I just dont understand how to write this program in NetBeans. PLEASE HELP ASAP!!!!!!