The first computer program I ever wrote was written in GW-BASIC. I was 8 or 9, and my dad had gotten me a book from the library that included the BASIC code for simple text-based games; after typing them into our IBM and playing around with them for a few hours, I decided to use what I had learned to write my own program, and it went something like this:
10 INPUT “WHAT IS YOUR NAME?”, N$
20 IF N$ = “CHRIS” THEN PRINT “YOU ARE COOL”
30 IF N$ = “AARON” THEN PRINT “YOU ARE DUMB”
I thought it was pretty cool; my brother Aaron probably disagreed. I recall having plans to use this program to not only tell me that I was cool, but to store all sorts of secret information that it would only print out if I ran the program, since no one else would think to type in my name. (I suppose this would also count as the first password I ever chose on a computer: my name. Way to go, 8-year-old self.)
Anyway, there’s not much more to this story, but I was wondering:
If you’re a programmer, what was the first program you wrote? What was the first thing you made a computer do that it wasn’t already programmed to do?