Monthly Archives: September 2012

Homework for Lecture 4

Well, this homework lets you experience more nested loops. To give you a little hunch, there are two ways to count from 0 to 99. The first looks like this: #include <stdio.h> int main(){     int a;     … Continue reading

Posted in Uncategorized | Leave a comment

Lecture 4

I admit, we didn’t get as far as I hoped for, but I think you progressed. Coding involves a lot of thinking on the programmers part. Particularly with C because everything is so basic that you really have to take … Continue reading

Posted in Uncategorized | Leave a comment

Lecture 4 Quiz

Posted in Uncategorized | Leave a comment

Homework L2 results

Here is a list of your scores on the homework for Lecture 2: ah 8 an 8 ar 8 cr 10 dk 10 dm 10 ds 10 dz 10 fl 8 gj 8 gw 10 hk 8 jg 10 jl … Continue reading

Posted in Uncategorized | Leave a comment

errata to Lecture 3

I said that if(0) would be evaluated as true, but that is wrong, if(1) would be evaluated as true, sorry for the confusion. Next lecture I will show you stdbool.h which allows us to use the word true and false, … Continue reading

Posted in Uncategorized | Leave a comment

Homework for lecture 3

Please keep generating three random numbers, where each random number is in the range of 0 to 100. Stop generating triplets of random numbers when one of the two following criteria is met: A) Random number one is equal to … Continue reading

Posted in Uncategorized | Leave a comment

Lecture 3

Flow Control! Lots of coding. Todays lecture added a lot of concepts. We talked about if and while and logic expressions, and threw everything together. At least we are out of the diaper phase where we were just using printf … Continue reading

Posted in Uncategorized | Leave a comment

quiz test

Posted in Uncategorized | Leave a comment

Exercise

In case you would like to jog your brain a little … think of different ways to achieve the following output: Hello World Obviously the most straight forward way would be to write: printf("Hello World\n"); but since we are in … Continue reading

Posted in Uncategorized | Leave a comment

variable recap

We talked about the idea of variables, and I can’t rub that in enough, so here is a brief recap of what I wanted to get across: A variable contains data, and you use it for everything “meaningful” your code … Continue reading

Posted in Uncategorized | Leave a comment