Wednesday, February 14, 2007

What is an Engineer thinking when shopping for groceries...

#include <brain.h>

boolean Dilemma
boolean Decision(Item);

int main(){

    Sense Eye;
    Money Price;
    Feel Mood;

    printf("Lab assignments and reports is driving me crazy...\n");
    scanf("%see", Eye);
    printf("Cadbury Fruit and Nut chocolate!!!\n");
    scanf("%cost", Price);
    printf("1.39 GBP!!!\n");

    Dilemma = Decision(Choco);

    if(Dilemma)
       Mood = Happy;
    else
       Mood = Irritated;

    printf("I think I'm crazy...\n");
    printf("Ya need choco. therapy if you understand this...\n");

    return 0;
}



boolean Decision(Item X){
    Factors Pros, Cons;
    Boolean Buy;

    Buy = srand()%2;

    if(Buy){
       Pros = Motivated to complete all the work;
       Cons = Less money to travel;
       //Funfare tix to London cost 1 GBP
    }
    else{
       Pros = A tix to London;
       Cons = No mood to do lab report and assignment;
    }

    return Buy;
}

1 Comments:

Blogger Unknown said...

omg, thats so geekish

3:36 pm  

Post a Comment

<< Home