EEN118, Programming I, Autumn 2007
Class and Lab History
Classes
- Class 1 (23-8-2007) General introductions.
- Class 2 (28-8-2007) Using the microsoft system to create a program.
- Class 3 (30-8-2007) History of computers and digital electronics.
- Class 4 (4-9-2007) Starting to program for real: expressions and functions.
(notes for today).
- Class 5 (6-9-2007) A more scientific program, testing Kepler's third law.
(notes for today).
- Class 6 (11-9-2007) Syntax summary (word)
(pdf), BNF notation, user input.
- Class 7 (13-9-2007) Sequencing, local constants, scope rules, recursive functions.
New: instructions for using (free) visual
C++ 2005 express edition.
- Class 8 (18-9-2007) Recap of design with functions and recursion. The function that speaks numbers.
(stages of development of that function:
1
2
3
4
5
6
7
8)
- Class 9 (20-9-2007) Extremely structured design and the value of simplicity: calculating the
day of the week.
New version of the library, fixing all known problems,
for Microsquid Visual C++ versions 6, 7, and 8, now on the
download page.
- Class 10 (25-9-2007) Variables, loops, cin, cout; why you shouldn't use variables if you can avoid them.
- Class 11 (27-9-2007) Discrete time simulations, the boy and the bull.
Program for the Boy and Bull study, with test data included.
Also an exe file.
- Class 12 (2-10-2007) Good global constants, evil global variables, reference and value semantics
- Class 13 (4-10-2007) Using Unix. Creating, editing, and running programs; making a web site.
- Class 14 (9-10-2007) Test Preparation, File input.
- Class 15 (11-10-2007) First Mid-Term.
- Class 16 (16-10-2007) Some test review. ifstream, ofstream, and operations thereon.
- Class 17 (18-10-2007) End of test review, more file input and output, variable arrays.
- Class 18 (23-10-2007) iostream manipulators, istringstream, <stdio.h>: printf, putchar, getchar.
- Class 19 (25-10-2007) Arrays.
- Class 20 (30-10-2007) Searching and sorting arrays, binary chop search on arrays, estimating computation time.
- Class 21 (1-11-2007) Arrays as parameters to functions, the sometimes-useful for loop, two dimensional arrays.
- Class 22 (6-11-2007)
- Class 23 (8-11-2007) Time analysis of functions and algorithms. An intractable O(n×2n)
problem, and many simpler examples.
(big-O fundamentals).
(time comparison chart).
- Class 24 (13-11-2007) Introducing Objects, simplifying program design and data representations.
- Class 25 (15-11-2007) Reminders for the test, objects representing rational numbers.
- Class 26 (20-11-2007) Second Mid-Term.
- Class 27 (27-11-2007) Survey Results, Syllabus. Pointers and flexible arrays.
- Class 28 (29-11-2007)
Labs
- Lab 1 (28/29-8-2007) Using visual C++ to run programs; drawing stick figures.
pdf, mdi
- Lab 2 (4/5-9-2007) Ol' Stripey, a use for functions.
pdf, mdi
- Lab 3 (11/12-9-2007) The Blowing-people-up-with-a-cannon game.
pdf, mdi
- Lab 4 (18/19-9-2007) A real-time clock.
pdf, mdi
- Lab 5 (25/26-9-2007) A handsome looking calendar.
pdf, mdi
- Lab 6 (2/3-10-2007) Bunny-rabbits, foxes, and tigers.
pdf, mdi,
samples.
- Lab 7 (9/10-10-2007) Unix and Web sites.
pdf, mdi
- Lab 8 (16/17-10-2007) Graphing meteorological observations, data files.
pdf, mdi
- Lab 9 (23/24-10-2007) Interactive Map of the United States, usa.map.
pdf, mdi
- Lab 10 (30/31-10-2007) Programming a Database.
pdf, mdi,
(data files: 1, 2, 3,
5, 10, 20)
- Lab 11 (6/7-11-2007) Audio Processing.
pdf, mdi
Sound library info:
pdf, mdi;
CD "ripper", and an
alternative one.
- Lab 12 (13/14/27/28-11-2007) Video Game
pdf, mdi,
(sample maze)