Hujambo!

snake-sugar
Alan volunteering with VSO in Tala, Kenya

Archive for July, 2008

The Ultimate Question

I have been teaching two classes to students this semester: Introduction to Programming and Algorithms and Network Essentials. So I’ve spent the past eight or nine weeks lecturing, giving assignments, and issuing CATs. I just gave the third CAT to my programming students and I thought it was pretty fair, but I was surprised at the results. Every student got this question completely wrong:

int main()
{
int salary = 15000;

if( salary > 15000 )
{
cout << "You have a nice job!" << endl;
}
else
{
cout << "You need a new job!" << endl;
}
}

Asked what this small program would print when executed, they all answered “3.” I wrote this question to test understanding of two concepts: the conditional if/else structure and the “>” operator. I figured that even if the students didn’t understand the programming syntax, logic alone would guide them. After all, “greater-than” is a concept in plenty of other disciplines besides computer science.

It’s not like I haven’t been teaching them! We have definitely talked about both of these concepts in class, and I even had them try similar examples in the computer lab over the course of the semester.

Maybe it’s not supposed to make sense, like the people who built a machine to calculate the purpose of life, the universe, and everything in Douglas Adams’ The Hitchhiker’s Guide To The Galaxy; the machine spent millions of years calculating, only to spit out “42.” Maybe “3″ is the right answer and I’m just not asking the right question, haha.

4 comments

Shoes Well Traveled

I was realizing the other day that my shoes have been so many places in the last four years. My one pair of Nike shoes has been in the United States, Mexico, Canada, India, Kenya, and Tanzania. Here are some of the highlights:


January, 2007: New Delhi, India

100_1002.JPG

Randi and I were in India in December, 2006 - January, 2007 and we visited New Delhi to see some beautiful architecture in this old city. Pictured is one of the buildings at the site of the Qutub Minar, the tallest brick and stone minaret in the world. The inscriptions on the building I’m standing next to are all in Arabic, carved maybe 600 years ago. I can imagine Muslims in northern India standing at the top of the minaret singing “Allahu akbar!” to call pious Muslims for prayer. Delhi was a big, dirty city, but it is home to many relics of the old world.
Read more

3 comments

« Previous Page