COP 3223 - Section 1 - C Programming

Exam on Wed 03/26

You have to bring a pink scantron with you to the exam.

You are allowed to bring three pages of notes to the exam.

Material for the exam: Chapters 5 - 12 of the Knights Programming book by Arup Guha, the lecture notes Week 1 - Week 5 (no functions), homework 1 - 3

There will be 4 problems:

It is important that you study the old exams on Arup Guha's archive.

Reference Materials, Examples, Assignments

Week Topics Book Reading Notes Examples
Week 1
(02/17-02/21)
Introduction to C Chapters 5, 6, 7 Introduction
Input/Output
Arithmetic Expressions
Trains Description
If Statement #1
If Statement #2
hello.c
firstprog.c
feettomile2.c
circle.c
trains.c
arithmetic.c
grade.c
digits.c rum.c
rum2.c
rum3.c
rum4.c
rum5.c
quadratic.c
quadratic2.c
learnrand.c
priceisright.c
ltrgrade.c
wage.c
desk.c
tax.c
age.c
irs.c
ifpitfalls.c
Week 2
(02/24 - 02/28)
While, For Loop, Do-while Chapter 8 Loops #1
Loops #2
examples of if statements

examples of while, do-while, for loops

beer.c
sum.c
tip.c
guess2.c
bankinclass.c
myfor.c
forloop.c
stars.c
guess.c
Week 3
(03/10-03/14)
Loops, File Input Chapter 9 File Input/Output
read-in data from files / write data to files

starsbacktri.c
crtexample.c
prime.c
testscores.c
primefact.c
Jetski Problem Description
filestuff.c
jetski.c
jetski.in
jetski.out
Weather Data
weather.c
changefile.c
Week 4
(03/14-03/21)
One/Two Dim. Arrays, Exam Review Chapters 11 and 12 Arrays
2D Arrays
arrays

arraysearch.c
arraymax.c
mode.c
tempcheck.c
monthavg.c
stddev.c
testscores.txt
sieve.c
Weather Data

pascaltri.c
gridgame.c
Week 5
(03/24-03/28)
Exam Review, Exam,
Functions
Chapter 13 Past Exams
Calling Functions
Writing Functions
Void Functions
calcgrade.c
tax2.c
checkrighttri.c
max3.c
primelist.c
primefact2.c
primefact3.c
bank2.c
trace.c
morestars.c
Week 6
Functions Chapter 14 Pass by Reference Parameters
functions and pointers

swap-fix.c
newguessgame.c
bank2.c
trace.c
Pass. Ref. Explanation
morestars.c
magicsquare.c
magicsquare-book.c
ttt.c
Week 7
Sorting, Strings Sections 14.5-14.6, Chapter 15 Sorting Notes
String Notes
selection and insertion sorts

sortnum.c
strexample.c
mystrlib.c
alphafind.c
readwords.c
words.txt
Week 8
Structs Chapter 16 Structure Notes
Second Structure Notes
structs

File Format for bank example
bankstruct.c
bank.txt
pointex.c
seveneleven.c
shopping.c
shopping2.c
iteminfo.txt
hotel.c
toys.c
poker.c
Week 9
Final Exam Review Chapters 5 - 16 Final Exam Review Notes
Past Exams
e4review.c