# Data of my life MUST 5003 doodle 02 by Junke Chen https://codepen.io/jc5479/pen/ZEOLrxP ```:javascript= //Junke is a graduate student who has severe procrastination. let me = { name: "Junke", isProcrastinate: true, thought: "", stress: 0 }; //Based on last night's planning, Junke set the alarm for 8:00. let alarm = { isOn: false }; function getAlarm() { if (time === "8") { alarm.isOn = true; } else { alarm.isOn = false; } }; function delayAlarm() { if (alarm.isOn === true) { me.isSleep = false; //Junke is awakened by the alarm clock. alarm.isOn = false; //Junke turns the alarm dowm. if (me.isProcrastinate === true) { me.thought = "Let me sleep for five more minutes!"; me.isSleep = true; //Junke falls in sleep again. } else { me.isSleep = false; //Junke gets up. } } }; //Due to procrastination, Junke falls asleep and finally gets up an hour later and find out it's already 9:00. She feels a little bit stressed for not getting up earlier, but she comfort herself it's still a long day. me.isSleep = false; time = 9; me.thought = "I should have got up earlier, but it remains a long day."; me.stress = me.stress + 5; //Junke begins to study. //Junke calculates the work to do and remaining time for each work. function calculateWork() {} calculateWork.costHour = 0.5; let work = ["readPaper", "code", "watchLecture"]; let readPaper = { leftPage: 30, hourToDDL: 3 }; let code = { leftCode: 100, hourToDDL: 30 }; let watchLecture = { leftLecture: 1, hourToDDL: 10 }; me.thought = "I have so much work to do today! I should make good use of time!"; me.stress = me.stress + 20; time = time + calculateWork.costHour; //Before studying, Junke has a lot of things to accomplish in order to postpone work. let prepareForStudy = [ { type: "cleanTable", costHour: 0.2 }, { type: "selectMusic", costHour: 0.2 }, { type: "prepareSnacks", costHour: 0.1 } ]; time = time + prepareForStudy[0].costHour + prepareForStudy[1].costHour + prepareForStudy[2].costHour; //Junke finally begins to read paper at 10:00. But after 30min, Junke feels boring and checks her phone. readPaper.leftPaper = readPaper.leftPaper - 10; time = time + 0.5; me.stress = me.stress - 10; let phoneCheck = { app: ["Wechat", "Weibo", "Lofter", "Bilibili"], costHour: 0.5 }; time = time + phoneCheck.costHour; //Suddenly, it's 11:00! There is only 1 hour left for the first assignment. Junke's anxiety level rises to 100! me.thought = "OMG, I may miss the deadline!"; me.stress = 100; //Junke finishes her reading in the later one hour and hands up in time. She returns to relief from the strong emotion and decides to relax for a longer time. readPaper.leftPaper = readPaper.leftPaper - 20; time = time + 1; me.thought = "I won't let time so tight next time. But now I deserve a long relex now."; me.stress = me.stress - 70; //a long relaxed noon let noon = { activity: ["eatLunch", "nap", "playVideoGames"], costHour: 3 }; time = time + noon.costHour; me.thought = "I have been wasted such a long time!"; me.stress = me.stress + 20; //To lose weight is one of Junke's recent goals. So it's time to do sports. Junke calculates the sports to do. function calculateWork() {} let loseWeight = { dayToDDL: 7, kgToLose: 2, sports: [ { type: "running", isDifficult: true, CalorieBurned: 300 }, { type: "sitUp", isDifficult: false, CalorieBurned: 100 }, { type: "flatSupport", isDifficult: true, CalorieBurned: 50 } ], diet: ["lessSweet", "lessMeat", "moreFruits"] }; //Before doing sports, Junke also has a lot of things to accomplish in order to postpone work. let prepareForSports = [ { type: "wearGymClothes", costHour: 0.3 }, { type: "selectMusic", costHour: 0.2 } ]; time = time + prepareForSports[0].costHour + prepareForSports[1].costHour; //Junke finally begins to do sports at 15:30. But after 15min, Junke feels tied and believes she needs to rest. time = time + 0.25; me.thought = "Though I haven't finish today's plan, but st least it's a good beginning step. I'll push myself harder tomorrow!"; me.stress = me.stress - 30; //Actuaaly, the same thinking will happen everyday and Junke will be really stressful at the end day. //After resting for four hours, Junke notices the barbage bins are full, the floor is dirty and much clothes should be cleaned. time = time + 4; let housework = ["sweepingTheFloor", "doTheLaundry", "dumpGarbage"]; me.stress = me.stress + 10; me.thought = "Even if I have cleaned now, everything will turn bad in a few hours. it's more clever to clean all of them together when there is more housework."; //before go to bed time = 12; me.thought = "I did nothing today! There is so much work left!"; me.stress = me.stress + 30; me.thought = "No matter what, I still have a tomorrow."; me.stress = 0;