-
Syllabus
-
Lab
Policy, Late Labs, Plagiarism, grading of labs
-
Using
Visual C++ in Room CC108
-
First
laboratory assignment- getting started
Arnie's jogging exercise from class
specification,
analysis, and design
C++
program
Assignment due 9/13/2001: Chapter 2 and chapter 3 review questions
Labs assigned at and of first laboratory are due on Friday, 9/14 for Tuesday
lab and Monday 9/18
for Monday lab.
function
exercise done in class
Answer
to functions class exercise
example
of bool type in an if statement
-
2nd
laboratory assignment - functions
-
File
coins.cpp for 1st and 2nd labs.
-
3rd
lab.
Assignment due 9/24/2001: Chapter 4 review questions
Exam chaps 1-4, 9/26/2001
-
Lab
4 - decisions and loops
-
Lab
5 - assigned week of October 8, 2001 -- revised Monday, October 15
-
Insertion
sort example from class
-
Shell
sort example from class
-
Array
of students example from class
Lab 6 - modify lab 5 to use a struct for each household. Use functions
as before, but replace the 3 array parameters with a single array parameter
that is an array of structs. Lab 5 is due the end of the week of 10/15.
This assignment is due the end of the week of 10/22. No late assignments
will be accepted!!!
Lab 7 - modify lab 6 to use files and the eof function. Due the end of
the week that begins Monday, Oct. 29.
Grading
Program discussed in class
Grading
program reading data from a file
Grading
program reading from file and using eof() function
Data
file for grading program with eof() function
Exam - Thursday, Nov. 1 covers chs. 5, 6, and 9
Some
questions to ponder for chapter 9
Sample
test on chapters 5, 6
Lab 8 - Due November 14
-
Description
of lab assignment
-
student.cpp
-
student.h
-
driver.cpp
Files with string field name added and int[] parameter for getScores.
-
student.cpp
-
student.h
-
driver.cpp
Lab 9 - Due Wednesday, Nov. 28. Redo the final household problem to use
a household class and an array of household objects. Use file input and
output. Also, add a sort function that will sort the array of household
objects so that they are stored in decreasing order by annual salary amount
(household with largest salary first). Write the household information
to your output file both in the original order and in sorted order.
-
Multidimensional
arrays and C-style strings
-
Class
gradebook and recursion
-
File
with class gradebook and student files (.zip)
Lab 10 (Optional) Create a class HouseData that stores
an array of household objects, the actual size of this array, and the town
(a string) where the data was collected. Write member functions for this
class that manipulate the array of household objects - you will need to
have functions similar to the ones used in lab 9. Then write a driver program
that carries out the steps required in lab 9 by applying the methods for
class HouseData to a HouseData object.
Final examination schedule:
8:40 - 10:00 T R, Thursday 12/13 8:30 - 10:30
1:10 - 2:30 T R, Tuesday 12/11 11:00 - 1:00
A link to an earlier final exam follows. It is quite a
bit easier than the one I have written. Your exam will cover arrays (single
and multidimensional), input files, structs, classes, and class student
and gradebook. There will be 10 brief programming questions - most involve
writing functions.
-
Sample
final exam
-
-----------------------------------------------------
-
text editing lab
-
Fractions
lab assignment - due 3/5/98
-
project 1, p. 447, no file input
-
project 1, read and store student names and scores
-
Sorting
lab
-
Selection
sort function
-
Exercises
from chapter 9
-
Final
project for spring 98
-
Sample
questions for 3rd exam