The textbook is C++ without Fear, 3rd edition, by Brian Overland
Planned class topics (subject to minor change):
- 08-28-23
class 1:
Introduction The mars computer system C++ programs, output instructions
Chapter 1 of the textbook.
Notes (just 1 page today)
Recording
Code, none today!
- 08-30-23
class 2:
Variables, primitive types in C++, input instructions
Chapter 1 of the textbook.
Notes
Recording
Code
- 09-06-23
class 3:
The assignment operator =, arithmetic with +, -, *, /, %
Chapter 1 of the textbook.
Notes
Sorry the recording failed, here is an old recording on the same topics
Code
- 09-11-23
class 4:
Decisions: if, if-else, blocks or compound statements
Chapter 2 of the textbook.
Notes
Recording
Code
- 09-13-23
class 5:
Repeated decisions, while instructions, boolean operators &&, ||, ! (and, or, not)
Chapter 2 of the textbook.
Notes
Recording
Code
- 09-18-23
class 6:
While loops to repeate an action
Chapter 2 of the textbook.
Notes
Recording
Code
- 09-20-23
class 7:
For loops. Examples.
Chapter 4 of the textbook.
Notes
Recording
Code
- 09-27-23
class 8:
Nested loops, examples
Chapter 4 of the textbook.
Notes
Recording
Code
- 10-02-23
class 9:
Examples of nested loops
Chapter 4 of the textbook.
Notes
Recording
Code
- 10-04-23
class 10:
Functions: calling functions, examples sqrt, rand, srand
Chapter 5 of the textbook.
Notes
Recording
Code
-
Practice problems on nested loops.
Solutions
-
More practice problems on nested loops.
Solutions
-
Practice problems for Midterm 1.
Solutions
- 10-10-23
class 11: Monday schedule on a Tuesday.
Writing functions, title line, block, examples
Chapter 5 of the textbook.
Notes
Recording
Code
- 10-11-23
class 12:
Writing functions, examples
Chapter 5 of the textbook.
Notes
Recording
Code
- 10-16-23
class 13:
Functions, examples
Chapter 5 of the textbook.
Notes
Recording
Code
- 10-18-23
Midterm 1.
Solutions for both versions
Grading rubrics for both versions of the test
- 10-23-23
class 14:
Call by value, Call by reference, Reference parameters, Examples
Chapter 5 of the textbook.
Notes
Recording
Code
- 10-25-23
class 15:
Recursion
Chapter 5 of the textbook.
Notes
Recording
Code
- 10-30-23
class 16:
Recursion, examples
Chapter 5 of the textbook.
Notes
Recording
Code
-
Practice problems on functions.
Solutions
- 11-01-23
class 17:
Examples of recursion
Chapter 5 of the textbook.
Notes
Recording
Code
- 11-06-23
class 18:
Arrays,
Chapter 6 of the textbook.
Notes
Recording
Code
- 11-08-23
class 19:
2-dimensional arrays,
Chapter 6 of the textbook.
Notes
Recording
Code
-
Practice problems on recursion.
Solutions
- 11-13-23
class 20:
Arrays as function parameters
Chapter 6 of the textbook.
Notes
Recording
Code
- 11-15-23
class 21:
Examples using arrays and functions
Chapter 6 of the textbook.
Notes
Recording
Code
-
Practice problems on arrays.
- 11-20-23
class 22:
Examples using arrays, functions, and recursion
Chapter 6 of the textbook.
Notes
Recording
Code
-
Practice problems for midterm 2.
Solutions
- 11-27-23
class 23:
Strings and characters
Chapter 8 of the textbook.
Notes
Recording
Code
- 11-29-23
class 24:
Examples using strings and characters
Chapter 8 of the textbook.
Notes
Recording
Code
-
More practice problems on arrays.
- 12-04-23
Midterm 2
Solutions for both versions
Grading rubrics for both versions of the test
-
Practice problems for the final exam.
Solutions
- 12-06-23
class 25:
Files
Chapter 9 of the textbook.
Notes
Recording
Code
- 12-11-23
class 26:
Examples with strings, files and arguments to main
Chapter 9 of the textbook.
Notes
Recording
Code
- 12-18-23
Final Exam: 8:30am to 10.30am. See room information above.