---
# System prepended metadata

title: Untitled

---

## Doodle 02 -- Showcase of My Day of Procrastination
Xinyue(Kiera) Zhou
```javascript=
//This doodle will describle how Kiera procrastinates 
//to finish her to-do list missions. 
//the Doodle02 has a deadline on 12:00 a.m.
//but Kiera was confident to finish another three missions first
//before writing doodle02

let name = "Kiera";
let stressLevel = 0; //stressLevel varies from 0 to 10
let energy = 10;
let toDoList = ["watchTutorials","haveAMeeting","writeReadingResponse" "writeDoodle02"];
let timeLeft = 24; //timeLeft varies from 0 to 24
let currentTime = 24 - timeLeft; //currentTime varies from 0 to 24
let isAwake = false;
let alarm = {
    ring: false;
}

//Kiera planned to wake up at 9 a.m. today.
//She planned to finish all three tasks in one day.

function alarmRing(currentTime){
    alarm.ring = true;
}

alarmRing(9);
//It is 9 a.m. now, and the alarm rings

function alarmRingAgain(){
    if (isAwake == true){
        alarm.ring = false;
        //the alarm will stop ringing again because I have got up
    }
    else alarmRing(currentTime+1);
    //the alarm will stop ringing for now but will ring again one hour later
    }

// finally I got up at 11 a.m. 
isAwake = true;
stressLevel += 3; 
energy -= 5;

function checkRemainingWork(){
    if (toDoList.length >= 0) {
        //While today's work is not all done, Kiera still has to work
    }
    else //Today's work is done, Kiera can rest
}

checkRemainingWork();
stressLevel++;
energy --;
timeLeft = 13;
//After checking what is remaining to be done, I feel more stressed.    

//Kiera begins to study, but she always does some preparations 
let readyToStudy = [["prepareCoffee",0.2],["eatSnack",0.3]];
timeLeft -= readyToStudy[0][1]+readyToStudy[1][1];

//After the preparation, she trully wants to begin, but she feels so bored.
let checkSocialMedia = {
    app: ["Instagram", "Youtube", "WhatsApp"],
    time: 1.5;
}
timeLeft -= checkSocialMedia.time;

//After 2 hours I find myself doing nothing, but I turn hungry
let noon = {
    activity: ["haveLunch", "takeANap"]
    time: 3;
}
timeLeft -= noon.time;
stressLevel --;
energy += 4;
//After a good rest I feel much better
    
    
//Now I come to work, and I finished watching the 2-hour tutorial first
timeLeft -= 2;
toDoList.shift();
checkRemainingWork();

//Now it's time to attend one group meeting, it is orginally planned to be 1 hour long, but it went late;
timeLeft --;
timeLeft --;
//the meeting went late another 1 hour
toDoList.shift();
checkRemainingWork();
stressLevel += 6;
energy -= 2;
//I find there are only few hours before the DDL of Doodle02
//I decide to do the last mission first instead of the third mission
//Because the last mission is due today at 12 a.m.

//The last mission took me 3.5 hours to finish
timeLeft -= 3.5
toDoList.pop();

return timeLeft;
checkRemainingWork();
stressLevel -= 2;
energy += 3;
//However, this does not really ease my stress level
//Because I have not finished all my homework

function sleep(){
    isAwake = false;
}

sleep();

```