Schedule 

Class # / Date  Topics  Notes  Class Materials 
Class 1 2/1 
Mars computer system
C++ programs Output instructions 
Chapter 1 of the textbook Beginners Book: First C++ Program 
Code 
Class 2 2/3 
Variables
Primitive types in C++ Input instructions 
Chapter 1 of the textbook 
Code 
Feb 8^{th} (Tue): Classes follow Friday Schedule  
Class 3 2/10 
The assignment operator =
Arithmetic with +, , *, /, % 
Chapter 1 of the textbook 
Code 
Class 4 2/15 
Decisions: if, ifelse, code blocks (compound statements)

Chapter 2 of the textbook 
Code 
Class 5 2/17 
Repeated decisions
While instructions 
Chapter 2 of the textbook 
Code 
Class 6 2/22 
While loops to repeat an action
Boolean operators &&, , ! (and, or, not) 
Chapter 2 of the textbook 
Code 
Class 7 2/24 
For loops

Chapter 4 of the textbook 
Code 
Class 8 3/1 
Nested loops

Chapter 4 of the textbook 
Code 
Class 9 3/3 
Nested loops, continued

Chapter 4 of the textbook 
Code Practice problems  Nested Loops  Solutions 
Class 10 3/8 
Functions: Calling functions
Examples with sqrt, rand, srand 
Chapter 5 of the textbook 
Code More nested loop practice problems  Solutions 
Class 11 3/10 
Functions: Calling functions
Examples with sqrt, rand, srand 
Chapter 5 of the textbook 
Code 
Class 12 3/15 
Functions: Writing functions
Title line Code block 
Chapter 5 of the textbook 
Code 
Mar 17^{th} (Thu) Exam 1  Practice problems  Solutions  
Class 13 3/22 
Functions: Writing functions, continued

Chapter 5 of the textbook 
Code Slides (Schley) 
Class 14 3/24 
Functions review
Call by value 
Chapter 5 of the textbook Title Lines Notes (Schley) 
Code 
Class 15 3/29 
Call by value vs. call by reference

Chapter 5 of the textbook Visualize  swap function 
Code Slides (Schley) 
Class 16 3/31 
Recursion

Chapter 5 of the textbook 
Code Slides (Schley) 
Class 17 4/5 
Examples of recursion

Chapter 5 of the textbook 
Code Recursion practice problems  Solutions Slides 
Class 18 4/7 
Examples of recursion Arrays 
Chapter 5 of the textbook 
Code Slides 
Class 19 4/12 
Arrays

Chapter 6 of the textbook 
Code 
Apr 14^{th} (Thu) Exam 2  Practice problems  Solutions  
4/15  4/22: Spring Recess  
Class 20 4/26 
2dimensional arrays

Chapter 6 of the textbook 
Code Slides (Schley) 
Class 21 4/28 
2dimensional arrays

Chapter 6 of the textbook 
Code Slides (Schley) 
Class 22 5/3 
Arrays as function parameters

Chapter 6 of the textbook 
Code Slides (Schley) 
Class 23 5/5 
Strings and characters

Chapter 8 of the textbook 
Code Slides (Schley) 
Class 24 5/10 
Examples using strings and characters

Chapter 8 of the textbook C++ string reference (cplusplus.com) 
Code 
Class 25 5/12 
Files

Chapter 9 of the textbook 
Code Slides (Schley) 
Class 26 5/17 
Examples with strings, files and arguments to main

Chapter 9 of the textbook 
Code Slides (Schley) 
May 24^{th} (Tue) Final Exam: 6:15p  8:15p in SB C205  Practice problems  Solutions  