Course Outline
HTML version
Course Outline
postscript version
Exams
- The solutions for the final can be found in the directory $L/lect in the file called final.sol.
- The solutions for the midterm can be found in the directory $L/lect/midterm. This directory contains 3 files
- midterm.sol -- the solutions to the arithmetic, short answer questions and the first 3 parts of the programming question.
- matches1.cc -- an implementation of the matches algorithm which uses no functions.
- matches2.cc -- an implementation of the matches algorithm which uses many functions.
Solutions
- My solutions for assignment #6, can be found in $L/lect/sol6
Samples from class
- Jun 20
The classes date and time along with client programs and Makefiles, can be found in directories with the same names here. Also the recursion examples and the advanced topics discussed at the end of class.
- Jun 15
The classes name, fraction and circle along with a client programs and Makefiles, can be found in directories with the same names here.
- Jun 13
The libraries myio and mymath along with a client program and the
Makefile, can be found here.
- Jun 8
The hand-outs showing some file examples and some array examples can be found here.
- Jun 6
The last 4 versions of the fraction example, implementations of the changeMaker and checkbook examples and also the stream examples can be found here. The README file explains what each file contains.
- Jun 1
- The function examples using output and inout parameters.
- A driver program to test the getFraction function.
- The design for the fraction arithmetic program; first version using stubs only.
- The C++ code for the fraction arithmetic program; first version using stubs only.
- The design for the fraction arithmetic program; second version which defines all parameter passing and designs most functions.
- The C++ code for the fraction arithmetic program; second version which implements all parameter passing and most functions.
- The design for the fraction arithmetic program; third version which designs the getFraction function.
- The C++ code for the fraction arithmetic program; third version which implements the getFraction function.
- May 25
- The day of year program written with the switch statement.
- Some loop examples.
- The day of year program written with the for loop.
- May 23
- Some if examples.
- Some switch examples.
- May 18
- Some function examples. No parameters, parameters, and return values.
- The happy birthday program written using functions with no parameters or return type.
- The happy birthday program written using functions with parameters and a return type.
- May 16
- A list of C++ Operators
- The happy birthday program written to use batch mode.
- seconds.cc C++ program to convert seconds to hours, mins and seconds. (NOT DONE)
- stride.cc C++ program to determine thedistance in km that a jogger jogs. (NOT DONE)
- The first step in converting the happy birthday algoritm to a program.
- area.cc C++ program to calculate the area and perimeter of a rectangle.
- lawn.cc C++ program to estimate cost to mow a lawn (extends the area program).
- Some standard libraries>
- Math library functions -- must include cmath
- CType library functions -- must include cctype
- Some Utility library functions -- must include cstdlib