CS35: Programming and Problem Solving
Ray Ontko
(rayo@ontko.com)
Department of Computer Science
Earlham College
Fall 1999
8:00 MWF
Lecture: Dennis 014
Lab: Dennis 224
This week in class
Handouts
- Syllabus
- Student Survey
- Assignment
1 (due Fri, 8/27)
- Assignment
2 (due Mon, 8/30)
- Assignment
3 (due Wed, 9/1)
- Assignment
4 (due Fri, 9/3)
- Assignment
5 (due Mon, 9/6)
- if
and else
- Assignment
6 (due Wed, 9/8)
- while
and getchar()
- Assignment
7 (due Fri, 9/10)
- Assignment
8 (due Mon, 9/13)
- Project
1 (due Mon, 9/20)
- Assignment
9 (due Fri, 9/24)
- Assignment
10 (due Wed, 9/29)
- Assignment
11 (due Fri, 10/1)
- Assignment
12 (due Wed, 10/6)
- Project
2 (due Fri, 10/8)
- Elements of C Style
- Quiz
1 (self-test).
- Functions
- Assignment
13 (due Wed, 10/13)
- Assignment
14 (due Wed, 10/20)
- Assignment
15 (due Fri, 10/22)
- An
Introduction to Pointers in C
- Assignment
16 (due Wed, 10/27)
- Project
3 (due Fri, 10/29)
- Quiz
2 (self-test).
- Assignment
17 (due Wed, 11/03)
- Assignment
18 (due Fri, 11/05)
- Project
3 Comments
- Project
4 (due Fri, 11/12)
- Final Project
Specification (due Wed, 11/17)
- Assignment
19 (due Fri, 11/19)
- Quiz
3 (self-test).
- Assignment
20 (due Wed, 12/01)
- Final Project
(due Mon, 12/06)
- Quiz
4 (self-test).
- Show and Tell
(Wed, 12/08)
Sample Programs
- hello.c,
our first program
- pounds.c,
a simple program using numbers
- Assignment 4, by Bobbi Clark
- Assignment 5, by Chris Blinn
- Assignments 5 & 6, by Bradley Stahlhut
- compare.c,
a demonstration of if and else
- number_count.c,
a demonstration of while with scanf
- char_count.c,
a demonstration of while with getchar()
- letter_count.c,
a demonstration of while with getchar()
and if
- Project 1a, by Maiko Teramoto
- checkerboard.c
and its
output,
a demonstration of parameterless functions
- count_alpha_strings.c
a simple "state" program
- count_comments.c
an example of a "state" program
- Assignment 12, by Maiko Teramoto
- y_or_n.c,
a demonstration of do while and a function which
returns a value
- break_continue.c,
a demonstration of break and continue
and a function which accepts a parameter value
- payment.c,
a demonstration of a function having multiple parameters of different
types and which returns a non-int value.
- print_grade.c,
a demonstration of a "void" function, one which performs an
action but does not return a value.
- gcf_lcm.c,
a couple of useful routines: gcf (greatest common factor)
and lcm (least common multiple).
- sort_four.c,
a demonstration of passing VARIABLES as parameters to functions
using & and *.
- fraction.c,
a collection of related functions which demonstrate the difference between
passing values and passing pointers.
- letter_freq.c,
a simple demonstration of an array
- line_hist.c,
another demonstration of an array
- deck.c,
a demonstration of arrays as parameters
- replace.c,
a demonstration of string handling: strlen(), strstr(), fgets(),
and fputs()
- upper.c,
a simple demonstration of file functions: fopen(), fclose(), getc(),
putc(), fprintf(), and perror()
- timer.c,
a simple demonstration of sleep() and fflush()
- stopwatch.c,
a simple demonstration of time() and difftime()
- ndemo.c,
a very simple demonstration of the ncurses library of windowing routines
Links
There are numerous pages on the web devoted to vi, pico, emacs, gcc, ftp, basic unix commands, etc. Here are a few.
© Copyright 1999,
Ray Ontko