(Pseu-Me) Wake-Up


 /*
 * How I get up in the morning
 */

class wakeUp {
   boolean sleeping = true;
   float alarmTime = 5.50;
   boolean alarm = false; 
   float OHGAWDITSLATE = 6.30;
   float currentTime;

   void awareness(time) {
     this.currentTime = time;
     if (dog barks) {
        wakeup();
        if (dog needs walk) {
           getUp();
           walkDog();
        }
     }
     
     else if (sound > ambientSound) {
        wakeup();
     }

     else if (currentTime == alarmTme) {
       alarm = true;
       wakeup();
     }
   }

   void wakeUp(currentTime) {
      sleeping = false;

      if (currentTime < OHGAWDITSLATE) {
        alarmTime + 15; 
        sleeping = true;
      }

      else {
         getUp();
      }

   }



public static void main(String [] args) {

   every second that passes {

     float time = LocalDateTime.now();
     awareness(time);
   }

}



Leave a Reply

Your email address will not be published. Required fields are marked *