The textbook is C++ without Fear, 3rd edition, by Brian Overland
Planned class topics (subject to minor change). Code will be added during classes:
 010322
Class 1:
Introduction. The mars computer system. C++ programs. Output instructions.
Variables. Primitive types. Input instructions. Assignment operator =. Arithmetic with +, , *.
(Chapter 1 of the textbook.)
Code
 010422
Class 2:
Arithmetic with /, %.
(Chapter 1 of the textbook.)
Decisions: if, ifelse. Blocks or compound statements. Repeated decisions: while instruction. Boolean operators &&, , ! (and, or, not)
(Chapter 2 of the textbook.)
Code
Notes
 010522
Class 3:
While loops to repeate an action.
(Chapter 2 of the textbook.)
For loops. Examples. Nested loops.
(Chapter 4 of the textbook.)
Code
Notes

Practice problems on nested loops.
Solutions
 010622
Class 4:
Nested loops. Examples of nested loops.
(Chapter 4 of the textbook.)
Code
Notes

More practice problems on nested loops.
Solutions
 011022
Class 5:
Functions. Calling functions, examples: sqrt, rand, srand.
Writing functions, title line, block, examples.
(Chapter 5 of the textbook.)
Code
Notes

Practice problems on functions.
Solutions
 011122
Class 6:
Writing functions, examples.
(Chapter 5 of the textbook.)
Code
Notes

Practice problems for the midterm exam.
Solutions

011122
Midterm in Lab class.
Solutions
 011222
Class 7:
Call by value. Call by reference. Reference parameters. Examples.
Recursion
(Chapter 5 of the textbook.)
Code
Notes
 011322
Class 8:
Recursion, examples
(Chapter 5 of the textbook.)
Code
Notes

Practice problems on recursion.
Solutions
 011822
Class 9:
Arrays. 2dimensional arrays. Arrays as function parameters. (Chapter 6 of the textbook.)
Code
Notes

Practice problems on arrays.
Solutions

More practice problems on arrays.
 011922
Class 10:
Examples using arrays and functions.
Examples using arrays, functions, and recursion.
(Chapter 6 of the textbook.)
Code
Notes
 012022
Class 11:
Strings and characters. Examples.
(Chapter 8 of the textbook.)
Files. Arguments to main. Examples.
(Chapter 9 of the textbook.)
Code
Notes

Practice problems for the final exam.
Solutions

012422
Class 12:
Final Exam (in class).
In case extra time is needed to finish the course, the final exam will be moved to the lab class.