---
# System prepended metadata

title: Doodle 002 - Data of My Life
tags: [mstu5003, ' doodle']

---

---
tags: mstu5003, doodle
---

# Doodle 002 - Data of My Life
## Sam Park

---

```:javascript=
// As a new labradoodle puppy (Kaia) owner, 
// my life revolves around her

let owner = {
    name: Sam,
    isAwake: false,
    isHappy: true,
}

let puppy = {
  name: Kaia,
  isAwake: false,
  needstoPee: true,
  energy: 100,
}

 
// When Kaia wakes up, Sam needs to wake up...
function wakeup(){
    if puppy.isAwake = true;
    then
        owner.isAwake = true;
    else
        Owner.isAwake = false;
}


// When we take walks outside, Kaia gets exercise 
// and her energy level decreases
function walk(){
puppy.energy = puppy.energy - 10;
}


// When they're outside, 
// he checks when we can go back inside
function checkDog(){
if puppy.needstoPee = true {
then
    walk();
    owner.isHappy = false;
elseif puppy.energy > 50 {
    walk();
    owner.isHappy = false;
}
else{
    gohome();
    owner.isHappy = true;
}}}


//At the break of down,
//Kaia wakes up
puppy.isAwake = true;
wakeup();

// We take walks around the neighbourhood 
walk();

// until she does her business and she is now tired,
// which makes Sam happy
checkDog();


```


bonus pic of Kaia
<img src="https://assets.codepen.io/8842352/20221009-IMG_3538s.JPG" alt="" />