Schedule




CS-11 Watsonville Schedule Spring 2018

Final Project:  C++ Sampler

To compile:  g++ -Wall -Wextra -Wpedantic -std=c++11 -o hello hello.cpp

Sample Headers

Key Sample Code

Tabs to Spaces

ASCII table

cout formatting

Wk # Date Lesson (review BEFORE class) In Class Work turned in to Canvas Reading (read BEFORE class) Homework Codelab HW HW Due Date
1 01/29/18

..

01/31/18

1: Introduction to Programming (Slides)

1B: Getting Started with C++

(Slides)

 



1B: Ex 1: Compiling a Program
Syllabus A1-Getting Started Register for Codelab

Codelab 1 Review & Tutorial Exercises

02/04/18 Sunday

Midnight

2 02/05/18



02/07/18

2: Basic Coding Skills
(slides)


2B: Memory and Numbers

(Slides)

Ex 2.1: C++
Ex 2.2: Adding


Ex 2.3b Calculator
Ex 2.4 Debug
Ch. 1


Ch. 2.1-2.3

A2-Math and Memory

HW1 Quiz

Quiz 1 Prep
Codelab 2
-Review Do all (7 problems)
-Tutorial->Arithmetic ONLY (6 problems)
02/11/18
3 02/12/18

..


02/14/18

Quiz 1
3: Strings and Selection
(slides)


3B: Conditional Statements

(slides)

Ex 3.1 Variables Handout
Ex 3.2Strings

3.3 Guessing Game
3.4 if-else-if
Ch. 2.4-2.5

Ch. 3.1-3.2

A3-Strings and Conditions Codelab 2
-Tutorial->Finish rest of problems (14 problems)

02/18/18
4 02/19/18

..

02/21/18

No Class: Lincoln's Birthday

4: Conditions and Loops

(Slides)

4B: Simple Repetition
(Slides)

 




Ex 4.2a Multiple Alternatives
Ex 4.2b Multi Level Decisions
Ex 4.3 Repeating a Program
Ch. 3.3-3.4, 3.7

Ch. 4.1

A4-Making Selections Codelab 3
(Do all Review & Tutorial Problems)
02/25/18
5 02/26/18




02/28/18

4 (Cont): Numbers
5: Getting Loopy
(slides)




Quiz 2

5B: Indefinite Loops
(slides)
Ex 4.1 Numeric Features
Ex 5.1 CountDown
Ex 5.2a Bar Charts



Ex 5.2 Tracing Nested Loops (on paper)
Ex 5.3 Processing User Input
Ch. 3.8, 4.2-4.5

Ch. 4.7-4.8

A5-Loopy Programs
Quiz 2 Prep
Codelab 4
(Do all Review & Tutorial Problems)
03/04/18
6 03/05/18



03/07/18

6: More Strings and Arrays



7: Getting Functional Midterm 1 Prep
(slides)


Ex 6.1 Finding Words
Ex 6.2 Simple Arrays 


Ex. 7.1 Getting Random

Ch. 4.6 A6-Midterm 1 Prep Codelab 5
(Do all Review & Tutorial Problems)
Midterm 1 Study Questions Due 
03/11/18

Midterm 1 Review Paper Worksheet Due 3/14/18 5:30pm
7 03/12/18







03/14/18

7B: Coding Functions

8: More About Functions

(slides)

Midterm Qs done by Students


Midterm Exam 1

8: More About Functions (Cont

Ex 7.2 Functions
Ex 8.1 Writing void Functions










Ex 8.2 Tracing Code Through Functions




Ch. 5.1-5.4 Functions

Ch. 6.1 Arrays

A7-Programs With Functions Codelab 6
(Do all Review & Tutorial Problems)
03/18/18


8 03/19/18

..




03/21/18

8B: Reference Parameters
(slides)




8C: Pointers

Ex 8.3 Exploring Call by Ref 







Ex. 8.5 Pointers

Ch. 5.5-5.8 Functions

Ch. 7.1-7.2 Pointers

A8-Multi-Function Programs and Pointers Codelab 7
(Do all Review & Tutorial Problems)
04/01/18
9 03/26/18

..

03/28/18

Spring Break (No class)

Spring Break (No class)

 --

--

    --
10 04/02/18




04/04/18

9: Classes and Objects
(Slides)



Quiz 3

9B: Classes Continued

(slides)

Ex 9.1 Returning Multiple Values
Ex 9.2a mystudent Starter Code


Ex. 9.2 student Starter Code
Ex 9.2 Accessors & Mutators
Ex 9.3 Multiple Constructors
Ch. 9.1-9.5

--

A9-Getting Classy
Quiz 3 Prep
Codelab 8
(Do all Review & Tutorial Problems)
04/08/18
11 04/09/18

..


04/11/18

10A: Vectors and Objects
(slides)


10B: Working with Vectors

(slides)

Ex.10.1 Trace an OO Program



Ex 10.2 Basic Vector Operations
Ex 10.3 Vector Algorithms
Ex 10.4 Vectors of Objects
Ch. 6.2-6.3, 6.7

--

A10: Vectors and Lists

Codelab 9
(Do all Review & Tutorial Problems)
04/15/18
12 04/16/18

..



04/18/18

11: I/O 

(slides)

 


Quiz 4

12A: More I/O and Objects

(slides)

Ex 11.1 Vector of Cats






Ex 11.2 Reading and Writing Two Numbers
Ch. 8.1-8.3

--

A11  I/O
Quiz 4 Prep
 Codelab 10
(Do all Review & Tutorial Problems)
04/22/18
13 04/23/18

..




04/25/18

12A: Continued
(12A_slides)
12B: Objects and Files
(12B_slides)


Discuss your Final Project

12B: Separate Compilation

(12B_slides)

Ex 12.1 Reading Files with Loops
Ex 12.2 Functions with Stream Parameters


Ex 12.3 Read/Write with Vector of Objects

Ch. 8.4

--

A12-Storing Information Codelab 11
(Do all Review & Tutorial Problems)
04/29/18
14 04/30/18

..



05/02/18

13: Graphics, Animation, Break & Continue
(slides)


13B:Switch Statement, Graphics

(slides)

Ex 13.1 Separate Compilation and Makefiles
Ex 13.1b break & continue


Ex 13.1c switch statement
Ex 13.2 Drawing
--

--

A13 Final Project Design & Prototype

Codelab 12
(Do all Review & Tutorial Problems)
05/06/18
15 05/07/18

..





5/09/18

Show Strelitz your Final Project Design + working Prototype

14: Animation and Recursion
(slides)


Quiz 5

14B: Recursion

(slides)

Ex 13.3 Simple Animation











Ex 14.3 Recursive Exponentiation

5.10, Ch. 11.1-11.3

--

Final Project: C++ Sampler

Quiz 5 Prep
Codelab 13
(Do all Review & Tutorial Problems)
 05/16/18
16 05/14/18

..





05/16/18

14B Recursion (cont)
15: Overloaded Functions, Final Exam Prep, Project Presentations
(slides)


15B: Project Demos

Ex 14.4 Recursion Functions-- Practice Final

Practice Final Solution

 05/20/18
17 05/21/18 Monday Final Exam 4pm-7pm C105

FILES