Class times: | Lecture | Monday and Thursday, 4:00am – 5:15pm, John Mulcahy Hall (JMH) 342 |
Lab | Monday, 5:30 – 6:30pm, John Mulcahy Hall (JMH) 331 |
Lecture 1, Introduction and programming basics | Chapters 1 |
Lecture 2, Writing and compiling programs with Linux | |
Lecture 3, Testing and debugging | |
Lecture 4, Variables and arithmetic | Chapters 1, 2 |
Lecture 5, Flow of control | Chapters 2, 3 |
Lecture 6, Loops | Chapters 2, 3 |
Lecture 7, Functions, part 1 | Chapters 4 |
Lecture 8, Functions, part 2 | Chapters 4, 5 |
Lecture 9, Functions, part 3 | Chapters 4, 5 |
Lecture 10, Arrays | Chapter 7 |
Lecture 11, Classes. | Chapter 10 |
Resources:
Computing guides
Linux Commands - important Linux commands for working on storm
vi Commands - important commands for the vi text editor; you are welcome to use emacs instead of vi
A Guide to Putty - Information for Windows users on accessing storm
Course guides
Grading for Labs - guide to how labs 1–8 will be graded
Advice for programming - useful as you write programs in class and for assignments
Example code
Hello world
Input/Output and Math
names.cpp - from class February 1
celsius.cpp - from class February 1
update.cpp - from class February 1
Conditionals
canDrive.cpp - from class February 8
canDrive2.cpp - from class February 8
rideFree.cpp - from class February 8
rideFree2.cpp - from class February 8
Switches
Weather per season - From class Feb 16
Weather per month - From class Feb 16
Weather and cold preferences - From class Feb 16
Loops
A for apple loop - From class Feb 18
A/P for apple/pear loop - From class Feb 18
Running sum from user input - From class Feb 22
Sum across interval - From class Feb 22
Functions
triple - From class Mar 7
min - From class Mar 7
Power - From class Mar 7
Euclidean distance - From class Mar 7
Random numbers - From class Mar 10
Random letters - From class Mar 10
Mystery function - From class Mar 14
Fibonacci - From class Mar 14
Greeting function - From class Mar 14
quadruple - pass-by-reference - From class Apr 4
toupper - From class Apr 4
Arrays
Reverse letters - From class Apr 8
Reverse letters, no repeat - From class Apr 8
getList - From class Apr 11
sumArray - From class Apr 11
printTable - From class Apr 18
Classes
Starter Dog class - For class Apr 21
Practice:
Below are midterm practice questions!
Questions are randomly color-coded. I recommend trying to answer one
set of colored questions first (for example, orange questions), review
the answers to those questions, and then move on to another set of
colored questions (for example, green).
Final practice!
Below are final practice questions!
Assignments:
Lab 0 - due February 1, 11:59pm
Lab 1 - due February 9, 11:59pm
Lab 2 - due February 24, 11:59pm
Lab 3 - due March 6, 11:59pm
Quiz/Exam Answers:
Quiz 1 answers