CSC 112
Announcements
- Test 2 on Thursday, November 5, 2009.
- Test 1 on Thursday, September 24, 2009.
- CIS 2006 is open and staffed by a computer science GTA Sun-Wednesday, 6:30 - 10:00 pm during Fall 2009
- Richie Alford's office hours: MW:3:30 - 4:45 and TR: 11:00 - 12:15 in CIS 2055
- My revised office hours are Wednesday and Friday, 1:00 - 2:00 pm, and by appointment.
Self Assessment: Do you know what you are doing?
Part 1
Part 2
Part 3
Course Resources
First day
handout
Installing a C compiler using Cygwin under Windows
Notes on compiling and executing C programs
Sample ppm images: mountain castle, picnic bench, butterfly
Robot on skis
An example illustrating pointers
Reading
August 27, 2009: Read chapter 2 of your text.
September 1, 2009: Read chapters 3 and 4 of your text.
September 8, 2009: Read chapters 5 and 6 of your text.
October 8, 2009: Read chapters 7 and 8 of your text.
October 27, 2009: Read chapter 9 of your text.
November 17, 2009: Read chapter 11 of your text.
Assignments/Projects
-
Project 1: Due before 11:59 PM on September 17, 2009.
-
Project 2: Due before 11:59 PM on October 21, 2009.
-
Project 3: Due before 11:59 PM on November 16, 2009.
-
Project 4: Due before 11:59 PM on December 2, 2009.
Labs
- August 25, 2009: Write a C program that can print your favorite letter in the English alphabet using an appropriate arrangement of asterisks. Here is a program that prints the letter O.
- August 27, 2009: Write a C program that can be used to calculate a person's Body Mass Index (BMI). The process for calculating BMI is described here. The user of your program will enter their height in feet and inches, and their weight in pounds. Here is the program we developed in class.
- September 1, 2009: Frequent flyer mileage verifier
- September 22, 2009: Geometric patterns.
- October 8, 2009: Color to grayscale converter
- October 20, 2009: Contrast enhancement of PGM image.Here is phase 1 of the program.
- October 27, 2009: Blurring grayscale image. Here is a 640x480 pgm image for testing.. Modify this code to accept command line parameters that specify the dimensions of the blur filter. For example, blur 4 4 < input.ppm >output.ppm will blur the image using a 4x4 region to calculate average intensities. Demonstrate this in class no later than Tuesday, November 3, 2009.
- November 3, 2009: Write and test the following C function: int isPrime(int number) that returns a 1 if number is prime, 0 otherwise.
- November 12, 2009: The countPix program from Test 2.
- November 17, 2009: Writing a function that uses pointers.
Sridhar Narayan