Difference between revisions of "User:Andrew Daniele"

From CDOT Wiki
Jump to: navigation, search
Line 1: Line 1:
 +
== About Me ==
 
{| class="wikitable" border="1"
 
{| class="wikitable" border="1"
 
|+ Contact Info
 
|+ Contact Info
Line 13: Line 14:
 
|}
 
|}
  
 +
if you need to contact me here is my schedule:<br />
 +
(I check my emails during studying and catchup time)
 +
<syntaxhighlight lang="cpp">
 +
Human senecaStudent;
 +
senecaStudent = new Human("1987-12-18", "Daniele", "Andrew");
 +
 +
while (senecaStudent.inSemester())
 +
{
 +
  senecaStudent.wakeUp();
 +
  senecaStudent.eatBreakfast();
 +
  senecaStudent.setAlertStatus("on");
 +
 +
  switch(day)
 +
  {
 +
  case 1:
 +
  case 2:
 +
  case 3:
 +
  case 4:
 +
  case 5:
 +
    senecaStudent.takeBus("to school", "from home");
 +
    senecaStudent.takeBus("to home", "from school");
 +
    senecaStudent.doHomework();
 +
    senecaStudent.eatDinner();
 +
    senecaStudent.playWith("whiteboard");
 +
    senecaStudent.study();
 +
  break;
 +
  case 6:
 +
    senecaStudent.catchUp("school", 40); // in percent
 +
    senecaStudent.eatDinner();
 +
    senecaStudent.catchUp("school", 30);
 +
  break;
 +
  case 7:
 +
    senecaStudent.work();
 +
    senecaStudent.eatDinner(); 
 +
    senecaStudent.catchUp("school", 30);
 +
    senecaStudent.playWith("whiteboard");
 +
  break;
 +
  }
 +
  senecaStudent.setAlertStatus("off");
 +
  senecaStudent.sleep();
 +
}
 +
</syntaxhighlight>
 +
 +
== Other ==
 
Programming Code of the update:<br />
 
Programming Code of the update:<br />
 
----
 
----

Revision as of 14:23, 14 September 2013

About Me

Contact Info
Name Andrew Daniele
IRC adaniele87
GitHub adaniele87
Blog adaniele87
E-Mail adaniele1

if you need to contact me here is my schedule:
(I check my emails during studying and catchup time)

Human senecaStudent;
senecaStudent = new Human("1987-12-18", "Daniele", "Andrew");

while (senecaStudent.inSemester())
{
  senecaStudent.wakeUp();
  senecaStudent.eatBreakfast();
  senecaStudent.setAlertStatus("on");

  switch(day)
  {
  case 1:
  case 2:
  case 3:
  case 4:
  case 5:
    senecaStudent.takeBus("to school", "from home");
    senecaStudent.takeBus("to home", "from school");
    senecaStudent.doHomework();
    senecaStudent.eatDinner();
    senecaStudent.playWith("whiteboard");
    senecaStudent.study();
  break;
  case 6:
    senecaStudent.catchUp("school", 40); // in percent
    senecaStudent.eatDinner();
    senecaStudent.catchUp("school", 30);
  break;
  case 7:
    senecaStudent.work();
    senecaStudent.eatDinner();   
    senecaStudent.catchUp("school", 30);
    senecaStudent.playWith("whiteboard");
  break;
  }
  senecaStudent.setAlertStatus("off");
  senecaStudent.sleep();
}

Other

Programming Code of the update:


/*sorting an array of ints*/
void makeAscending(int* arr, int size)
{
  int i;
  int j;
  int temp;

  for (i = 0; i < size; i++)
  {
    for(j = i+1; j < size; j++)
    {
      if (arr[i] > arr[j])
      {
        temp = arr[i];
        arr[i] = arr[j];
        arr[j] = temp;
      }
    }
  }
}