My problem is to design a program that uses a mathematical model for heat loss, or Tnew = Told - m(Told - Tair). It also asks me to repeat the code for 60 minutes, generating a new answer every minute. I have completed the code, however I receive no output. There are no build errors. What am I doing wrong?
package hotpotato;
/**
*
* @author Josh
*/
public class Main {
public static void heatLoss (double m, double tO, double tA) {
for (int i = 1; i == 60; i = i +1) {
// int n represents 60 minutes,
double tNew = tO - m * (tO - tA);
tNew = tO;
// Defines tNew and the next minute's tO
System.out.println ("New temperature: " + tNew);
// Output New Temp
}
}
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
heatLoss (.5, 100, 90);
}
// TODO code application logic here
}