thermostat-sim.doc
help? i got the vague idea but i cant put it as a program.
URGENT
My program so far
import java.util.*;
public class HanLee_Thermostat {
public static void main(String[] args) {
double temp=setTarget();
double change=tempDrift();
int val= setNumSimulations();
double initial=temp;
String status;
}
public static String display(double temp, double initial, double change, int val, String status){
if(initial==temp){
status="None";
for(int i=0; i<=val; i++){
System.out.println("-----------------------------");
System.out.println( initial+ "degrees F");
System.out.print("Currently running: " + status);
System.out.println("-----------------------------");
}
}
else{
}
}
public static double setTarget(){
Scanner key=new Scanner(System.in);
System.out.print("Enter desired temperature: ");
double temp=key.nextDouble();
return temp;
}
public static int setNumSimulations(){
Scanner key=new Scanner(System.in);
System.out.print("Enter desired number of simulated intervals: ");
int inter=key.nextInt();
return inter;
}
public static double checkSystem(double tartemp){
double curtemp= tartemp;
}
public static double tempDrift(){
Random generator=new Random();
double change=generator.nextDouble()*3;
return change;
}
public void displaySummary(){
System.out.print("Summary Data");
System.out.print("--------------");
}
}