Schedule

Class # / Date Topics Notes Class Materials
Class 1
1/25
Course Intro
Mars computer system
First C++ program
Output instructions
Chapter 1 of the textbook
Beginners Book: First C++ Program
Code
Class 2
1/30
Variables
Primitive data types
Input instructions
Chapter 1 of the textbook Code
Slides
Class 3
2/1
Assignment operator =
Arithmetic with +, -, *, /, %
Chapter 1 of the textbook Code
Slides
Class 4
2/6
Decisions: if, if-else
Code blocks (compound statements)
Chapter 2 of the textbook Code
Slides
Class 5
2/8
Boolean operators &&, ||, ! (and, or, not)
Repeated decisions: while instructions
Chapter 2 of the textbook Code
Slides
Note: Feb 13th (Mon): College Closed
Class 6
2/15
While loops to repeat an action
Chapter 2 of the textbook Code
Slides
Note: Feb 20th (Mon): College Closed
Note: Feb 21st (Tue): Classes follow Monday Schedule
Class 7
2/21 (Tue)
while loop and for loop
Chapter 4 of the textbook Code
Slides
Class 8
2/22
Nested loops
Chapter 4 of the textbook Code
Slides
Practice problems - Nested Loops | Solutions
Class 9
2/27
More examples of nested loops
Fuctions
Chapter 4 and 5 of the textbook Code
Slides
More nested loop practice problems | Solutions
Class 10
3/1
Calling existing functions
Examples with sqrt, rand, srand
Chapter 5 of the textbook Code
Slides
Class 11
3/6
Catch up & Review
Code
Slides
Mar 8th (Wed) Exam 1 in RO-230 (2nd floor in the library building) - Practice problems | Solutions
Class 12
3/13
Writing functions
Title line
Code block
Chapter 5 of the textbook
Code
Slides
Class 13
3/15
Writing functions (continued)
Chapter 5 of the textbook
Code
Slides
Class 14
3/20
Call by value
Call by reference (reference parameters)
Chapter 5 of the textbook
Visualize - swap function
Code
Slides
Class 15
3/22
Recursion
Chapter 5 of the textbook
Code
Slides
Class 16
3/27
Examples of Recursion
Chapter 5 of the textbook Code
Slides
Class 17
3/29
More examples of recursion
Arrays
Chapter 5 and 6 of the textbook Code
Recursion practice problems | Solutions
Slides
Class 18
4/3
Arrays
Chapter 6 of the textbook Code
Slides
4/5 - 4/13: Spring Recess
Class 19
4/17
Arrays
Catch up & Review
Chapter 6 of the textbook Code
Apr 19th (Wed) Exam 2 in RO-230 (2nd floor in the library building) - Practice problems | Solutions
Class 20
4/24
2-dimensional arrays
Chapter 6 of the textbook Code
Slides
Class 21
4/26
2D arrays; Arrays as function parameters
Chapter 6 of the textbook Code
Slides
Class 22
5/1
Examples using arrays, functions, and recursion
Bubble Sort
Chapter 6 of the textbook
Bubble Sort (geeksforgeeks.org)
Code
Slides
Class 23
5/3
Strings and characters
Chapter 8 of the textbook Code
Slides
Class 24
5/8
Examples using strings and characters
Chapter 8 of the textbook
C++ string reference (cplusplus.com)
Code
Slides
Class 25
5/10
Files I/O
Chapter 9 of the textbook Code
Slides
Class 26
5/15
Pre-increment and post-increment
Using break + continue in a loop
Arguments to main
Chapter 9 of the textbook Code
Slides
May 22nd (Mon) Final Exam: 6:15p - 8:15p in RO-230 (library) Practice problems | Solutions