---
# System prepended metadata

title: Data of My Life Model

---



---
tags: mstu5003, doodle
Group Members: Ingrid Wang, Muti Prasetyo, Justin Arenas, Jiayi Xue
Date of Submission: October 30th, 2022



---

# Data of My Life Model

---
**General Storyline of the Three (3) TC Students**
![story line](https://i.imgur.com/P2xRnk1.png)



---

***This is how we code it!***
```:javascript=
// Hi! We are April, Wilson, and Johnathan, first-semester graduate students @ TC.

semesterStarts();

// Please let us introduce ourselves and our daily activities :)

 var tcStudents = [

  {
    name: "April Harber",
    enrollmentStatus: "full-time",
    studentAthlete: false,
    working: false,
    haveChild: false,
    breakfast: true,
    lunch: true,
    dinner: true,
    dailySportHour: 0,
    studyingHour: 1,
    classTaken: ["Technology and School Change", "Video Games in Education", "International Perspectives on Early Childhood Policy", "Basic Concepts in Statistics", "Instructional Design of Educational Technology", "Introduction to Adult and Continuing Education"],
    commute: "driving",
    hasPets: true
  },
    {
    name: "Johnathan Michaelson",
    enrollmentStatus: "part-time",
    studentAthlete: false,
    working: true,
    haveChild: true,
    breakfast: false,
    lunch: true,
    dinner: true,
    dailySportHour: 0,
    studyingHour: 2,
    classTaken: ["Learning and Technology in Organizations", "Applied Regression Analysis", "Culture, Media and Education"],
    commute: "train"
  },
  {
    name: "Wilson Kim",
    enrollmentStatus: "full-time",
    studentAthlete: true,
    working: false,
    haveChild: false,
    breakfast: false,
    lunch: true,
    dinner: true,
    dailySportHour: 2,
    studyingHour: 2,
    energyLevel: 100,
    isUnderStress:false,
    classTaken: ["Core Seminar in Communication, Media, and Learning Technologies Design", "Video Games in Education", "Mobile Learning", "Intro to Data Analysis in R","Economics of Education"],
    commute: "walking"
  }
]

// Let the day start! 

dayStarts();

function morningPower(){
  for( i = 0; i = tcStudents.length; i++){
    if(tcStudents[i].breakfast == true && tcStudent[i].dailySportHour == 1){
  console.log("Ready for school!");}
   else {
  console.log("Get some breakfast & sport!");
  
// Those who need breakfast and sport will have breakfast and sport

  tcStudents[i].sportHour +=1;
  tcStudents[i].breakfast = true;
  }
}

morningPower();

// We're about to go to class now. 

function middayCheck(){
  for( i = 0; i = tcStudents.length; i++){
    if(tcStudents[i].lunch == false || tcStudents[i].working == true || tcStudents[i].haveChild == true ){
  console.log("Exhausted");} 
  }
}

function goToClass(){
for( i = 0; i = tcStudents.length; i++){
  console.log(tcStudents[i].commute);
  console.log(tcStudents[i].classTaken);} 
  }


middayCheck();
goToClass();


// The sun goes down. Let's go home!

function sleepReady(){
  for( i = 0; i = tcStudents.length; i++){
    if(tcStudents[i].dinner == true && tcStudents[i].studyingHour >= 1){
  console.log("Ready to sleep!")}
   else {
  console.log("I can't sleep");
  
  // Those who need to have dinner and to study will have dinner and study
  
  tcStudents[i].dinner = true;
  tcStudents[i].studyingHour +=1;
  }
}

sleepReady();

// And that was our day as TC Students :)

function sleep(){
    console.log("ZZzzZZZ");
}

sleep();

```

---



