Browse Source

added another writeIFs method and deleted commented out variables that i moved earlier

Margaret Pierse 6 years ago
parent
commit
da4fb5bc71
1 changed files with 7 additions and 18 deletions
  1. 7
    18
      WriteIFs.java

+ 7
- 18
WriteIFs.java View File

55
         // AND 
55
         // AND 
56
         // “insideTemp()” is less than 62, 
56
         // “insideTemp()” is less than 62, 
57
         // calls “startAFire(fireplace1)”
57
         // calls “startAFire(fireplace1)”
58
+        if (outsideTemp() < 50 || insideTemp() < 62){
59
+        startAFire(fireplace1);
60
+        }
58
 
61
 
59
     }
62
     }
60
 
63
 
68
      *  Pay no attention to the code below this point.
71
      *  Pay no attention to the code below this point.
69
      * 
72
      * 
70
      * 
73
      * 
71
-     * instance variables
74
+     * 
72
      * / 
75
      * / 
73
-    // int x;
74
-    // int tt_t;
75
-    // int tt_s;
76
-    // int oo1, oo2;
77
-    // String ss;
78
-
76
+    
79
     /**
77
     /**
80
-     * Constructor for objects of class WriteIFs
78
+     * 
81
      */
79
      */
82
-    // public WriteIFs()
83
-    // {
84
-    // initialise instance variables
85
-    // x = 0;
86
-    // tt_t = 0;
87
-    // tt_s = 1;
88
-    // ss = "";
89
-    // oo1 = 61;
90
-    // oo2 = 49;
91
-    // }
80
+    
92
 
81
 
93
     // associated routines
82
     // associated routines
94
     public boolean isAlive(boolean p) {
83
     public boolean isAlive(boolean p) {