User:Andrew Daniele

From CDOT Wiki
Revision as of 14:31, 14 September 2013 by Andrew Daniele (talk | contribs) (About Me)
Jump to: navigation, search

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("school", "home");
    senecaStudent.takeBus("home", "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;
      }
    }
  }
}