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) 330 |
Midterm lab solution. Grades now available.
Midterm written answers are up — sorry for the delay!!
|
Lecture 1, Introduction and programming basics. | Chapters 1, 2 |
Lecture 2, Writing and compiling programs with Linux | |
Lecture 3, Debugging | |
Lecture 4, Flow of control. | Chapters 2, 3 |
Lecture 5, Flow of control -- Loops. | Chapters 2, 3 |
Lecture 6, Modularity and functions. | Chapter 4 |
Lecture 7, Functions -- scope and voids. | Chapter 4, 5 |
Lecture 8, Functions -- documentation, recursion, and overloading. | Chapter 4, 5 |
Lecture 9, Functions -- pass-by-reference. | Chapter 4, 5 |
Lecture 10, Arrays. | Chapter 7 |
Lecture 11, Classes. | Chapter 10 |
Lecture 12, Video games. | My full video game code |
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 C++ code - simplified from lecture 1
makeQuarters code - an example of a better-formatted program for computing the number of quarters in a dollar (modified from lecture 1, slide 39
Conditionals
buyApples - code from Feb 17 lab class
buyApplesOR - more code from Feb 17 lab class
seasonWeather - more code from Feb 17 lab class
seasonWeatherMonth - more code from Feb 17 lab class
Loops
areaSquare - code from Feb 23 lab class
runSum - more code from Feb 23 lab class
sumRange - more code from Feb 23 lab class
Functions
square - code from Mar 9 lab class
power - more code from Mar 9 lab class
random10 - random number generator based on Mar 12 lab class
factorial - code from Mar 23 lab class
fibonacci - more code from Mar 23 lab class
printOut - more code from Mar 23 lab class
flip - Code from Mar 31 lab class
Arrays
reverseLetters - code from Apr 1 lab class
reverseLettersNoRepeat - code from Apr 1 lab class
find - more code from Apr 2 lab class
findCar with Arrays - modified version of code from Apr 16
gridLetters - example code using multi-dimensional array
worldFind - the find function we defined for Lecture 12 on April 20
Classes
dog - Copy this code BY HAND for April 9
class, experiment with declaring new Dog objects, using member
functions, and changing the values of member variables
account - Code we worked on in April 13 class
Assignments:
Lab 0 - Due at 11:59am (noon!), January 23
It may be helpful to know: