Class times: | Lecture | Monday and Thursday, 11:30am – 12:45pm, John Mulcahy Hall (JMH) 342 |
Lab | Monday, 1:00 – 2:15pm, John Mulcahy Hall (JMH) 330 |
Lecture 1, Introduction and programming basics. | Chapters 1, 2 |
Lecture 2, Writing and compiling programs with Linux | |
Lecture 3, Sidenotes on debugging. | |
Lecture 4, Flow of control. | Chapters 2, 3 |
Lecture 5, Functions. | Chapter 4 |
Lecture 6, More functions. | Chapters 4, 5 |
Lecture 7, Arrays. | Chapter 7 |
Lecture 8, Classes. | Chapter 10 |
Lecture 9, Practice problems. |
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–4 will be graded
Advice for programming - useful as you write programs in class and for assignments
More practice assignments:
More practice with functions
Example code
Hello World C++ code - simplified from lecture 1
studentCount code - code from Sept 15 lab class
studentAbsent - more code from Sept 15 lab class
Conditionals
buyApples - code from Sept 22 lab class
buyApplesOR - more code from Sept 22 lab class
armytimeGreeting - more code from Sept 22 lab class
gradeReport - more code from Sept 22 lab class
seasonWeather - code from Sept 29 lab class
seasonWeatherExtra - more code from Sept 29 lab class
Loops
sumRange - more code from Sept 29 lab class
sumRangeExtra - more code from Sept 29 lab class
Functions
triple - code from Oct 23 lab class
tempConvert - more code from Oct 23 lab class (converting types of temperature)
boxVolume - code from Oct 27 lab class
min - more code from Oct 27 lab class
guessNumber - more code from Oct 27 lab class
decimalGenerate - more code from Oct 27 lab class
areaOverload - code from Nov 6 lab class
factorialRecurse - more code from Nov 6 lab class
Arrays
reverseLetters - code from Nov 10 lab class
reverseLettersNoRepeat - more code from Nov 10 lab class
minArray - code from Nov 10 lab class
factorial - starter code from Nov 17 lab class
sort - BUGGY code for Nov 17 lab class
factorial with cout's - code from Nov 17 lab class, incorporating cout statements into factorial
minIndexArray - code for Nov 17 lab class for finding index of smallest number in array
Classes
cow class - code for Nov 24 lab class; in class we will do the following exercises, you can also click here for the cow.cpp code
cow - expanded - code from Nov 24 lab class, with the additions made during class
General Review
In-class lab assignments for general review -- I will post my solutions after Dec 8 class
More practice with functions
Grade list code from final lecture
Exam practice
Midterm 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).
Written midterm answers now available.
Translating from number grade to letter-range of grade: 60-73 "A range," 50-60 "B range, "40-50 "C range," 30-40 "D range,"
Online midterm answer code now available.
Translating from number grade to letter-range of grade for online midterm: 22.5-25 "A range," 18.5-25 "B range, "15-18.5 "C range," 12.5-15 "D range,"
Final practice!
Below are final practice questions!
Assignments:
Lab 0 - Due at 11:59pm, September 15
Grade breakdown (max possible score 46)