Midterm 2 will be in class on Wednesday 05-05-21.
The final exam will be on Wednesday 05-19-21 from
8:30am to 10.30am for both classes.
No make up exams will be given. If you miss a midterm, your final exam score will be used in its place. If you miss the final you will get a WU for the course, or only in the case of good, sufficient and unforeseen reasons you might qualify for an
incomplete grade for the course.
Information about the mars/venus computer system used for this course.
The textbook is C++ without Fear, 3rd edition, by Brian Overland
Planned class topics (subject to minor change):
- 02-01-21
class 1:
Introduction The mars computer system C++ programs, output instructions
Chapter 1 of the textbook.
Code
- 02-03-21
class 2:
Variables, primitive types in C++, input instructions
Chapter 1 of the textbook.
Code
- 02-08-21
class 3:
The assignment operator =, arithmetic with +, -, *, /, %
Chapter 1 of the textbook.
Code
- 02-10-21
class 4:
Decisions: if, if-else, blocks or compound statements
Chapter 2 of the textbook.
Code
- 02-17-21
class 5:
Repeated decisions, while instructions, boolean operators &&, ||, ! (and, or, not)
Chapter 2 of the textbook.
Code
- 02-22-21
class 6:
While loops to repeate an action
Chapter 2 of the textbook.
Code
- 02-24-21
class 7:
For loops. Examples.
Chapter 4 of the textbook.
Code
- 03-01-21
class 8:
Nested loops, examples
Chapter 4 of the textbook.
Code
-
Practice problems on nested loops.
Solutions
- 03-03-21
class 9:
Examples of nested loops
Chapter 4 of the textbook.
Code
-
More practice problems on nested loops.
Solutions
-
Practice problems for Midterm 1.
Solutions
- 03-08-21
class 10:
Functions: calling functions, examples sqrt, rand, srand
Chapter 5 of the textbook.
Code
- 03-10-21
class 11:
Writing functions, title line, block, examples
Chapter 5 of the textbook.
Code
-
Practice problems on functions.
Solutions
- 03-15-21
class 12:
Writing functions, examples
Chapter 5 of the textbook.
Code
- 03-17-21
Midterm 1
Solutions for both versions