CPS171 Assignments
Basic info
Handout list for Day 1.0
How to print your assignments (Win95/Win98)
How to print your assignments (Windows 2000)
Lab accounts
Free CPS171 tutoring in LA104 (TBA)
Top 17 C++ programming errors
Introduction to Visual C++ Debugging
Debugging a simple program with the Microsoft Visual C++ Debugger
Machine Problems
MP 0: temperature conversions
(Due 01/23)
MP 1: strings
and
grading sheet
(Due 01/30)
MP 2: clock arithmetic
and
grading sheet
(Due 02/06)
MP 3: ATM transactions
and
data file
and
grading sheet
(Due 02/21)
MP 4: Snowfall calculations
and
data file
and
grading sheet
(Due 03/06)
MP 5: Divorce calculations
and
divorcedata.txt file
and
countyinfo.txt file
and
grading sheet
(Due 03/20)
MP 6: Bank account class
and
grading sheet
(Due 04/03)
MP 7: Bank account Arrays
and
grading sheet
mp6master.dat
and
mp7trans.dat
In-class Labs (Value: 5 points each)
Sphere Lab: doing a simple formula
(Due 02/04)
Lab 1: Using I/O
and
lab1.cpp
(Due 2/11)
Lab 2: Using Datafiles and if-then-else
and
lab2.cpp
(Due 2/18)
Lab Loops: When to use what kind of loop
and
labloops.cpp
and
labloops.dat
uses the
Looping worksheet
(Due 2/25)
Lab Funcs: Writing simple functions
uses
labfuncs.cpp
(Due 3/11)
Lab 4: Using the
enum
type
uses
reformat.dat
(Due 03/18)
Lab 5: Using classes:
uses
carmain.cpp
and
car.h
and
car.cpp
(Due 04/08)
In-class worksheets (for learning purposes only)
Variable declaration worksheet
Expression formula translation worksheet
Switch worksheet
Functions worksheet
Array worksheet
Sorting worksheet
Class design worksheet
C string (array of char) worksheet
Demo programs
allsamples.zip
: source code from the textbook
Guess.cpp
: guess the letter
funcs.zip
: functions and parameters
catclass.zip
: cat class example
ptclass.zip
: geometry class example
recurs.cpp
: recursion sample
Test Review worksheets
Review worksheet for Test #1
Janet's Chapter-by-Chapter review guide!
Answers for Test #1 review questions
that are not in the back of the book
Review worksheet for Test #2
Answers for Test #2 review questions
that are not in the back of the book
Review worksheet for Test #3
Review answers for Test #3
Final Exam Review worksheet