COP 3223 Introduction to C Programming - Section 1

Fall 2009

Prof. Joseph J. LaViola Jr.

BA 119 MWF 10:30am - 11:20am


Welcome to COP3223 - Section 1: Programming Assignment 6 has been posted. It is due Dec. 7th, 11:59pm. This assignment is for a grade.


Section 1 Syllabus and Info

C Quick Reference Sheet

Lecture Notes and Example Programs courtesy of Arup Guha


Date Lecture Description Readings Assignments
8/24/09

Introduction
   -course mechanics
   -history of C
   -strengths/weaknesses of C

King, Chapter 1
8/26/09

C Fundamentals
   -writing a simple program
   -comments
   -variables and assignment

King, Chapter 2, pgs. 9-20
8/28/09

C Fundamentals Cont'd
   -reading input
   -constants and identifiers
   -layout of a C program

King, Chapter 2, pgs. 20-32 King, pg. 33, Problems 2-6
8/31/09

Finish C Fundamentals
Formating input and output

King, Chapter 3 King, pg. 49, Problems 1,5
King, pgs. 50-51, Problems 2,5
9/2/09

Expressions
   - arithemtic operators
   - assignment operators

King, Chapter 4, pgs. 53-61
Programing Assignment 1 (For a Grade)
9/4/09

Expressions Cont'd
   - increment/decrement operators
   - expression statements/evaluation

King, Chapter 4, pgs. 61-68 King, pgs 69-71, problems 1,9,10,11,12
9/9/09

Finish Expressions Chapter


Programing Assignment 1 due tonight
9/11/09

Selection Statements
   - logical expressions
   - the if statement

King, Chapter 5, pgs. 73-78 King, pgs 93-94, problems 1,2,3
9/14/09

Selection Statements cont'd
   - condtional expressions
   - the switch statement

King, Chapter 5, pgs. 78-93 King, pgs 94-95, problems 8,9,11
King, pgs 96-97, problems 4,9
9/16/09

Loops
   - the while statement
   - the do statement
   - the for statement

King, Chapter 6, pgs. 99-111
Programming Assignment 2 (For a Grade)
King, pgs 121-122, problems 1-5,8
9/18/09

Loops cont'd
   - exiting from a loop
   - the null statement

King, Chapter 6, pgs. 111-120 King, pgs 121-122, problems 11-14
King, pgs 122-124, problems 1,6,11
9/21/09

Types
   - integer types

King, Chapter 7, pgs. 125-132
King, pgs 155-156, problems 3,6
9/23/09

Types
   - floating types
   - character types

King, Chapter 7, pgs. 132-142
Programing Assignment 2 due tonight
9/25/09

Types
   - type conversion
   - casting
   - typedef and sizeof

King, Chapter 7, pgs. 142-155
King, pgs 157-158, problems 4,6,11
9/28/09

Exam Review



9/30/09

Exam 1



10/2/09

Arrays
   - one dimensional arrays

King, Chapter 8, pgs. 161-169
King, pgs 177, problems 3,5
10/5/09

Arrays cont'd
   - multi-dimensional arrays
   - variable-length arrays

King, Chapter 8, pgs. 169-177
Programming Assignment 3 (For a Grade)
King, pgs 178, problems 8,9
King, pgs 179, problems 5
10/7/09

Functions
   - defining and calling functions

King, Chapter 9, pgs. 183-191
King, pgs 214, problems 1,2,5,7
10/9/09

Functions cont'd
   - function declarations
   - function arguments

King, Chapter 9, pgs. 191-201
King, pgs 214-215, problems 8,9,11
10/12/09

Functions cont'd
   - function arguments

King, Chapter 9, pgs. 193-201

10/14/09

Functions cont'd
   - function termination
   - recursion

King, Chapter 9, pgs. 201-214
Programing Assignment 3 due tonight
10/16/09

Program Organization
   - local/external variables
   - scope

King, Chapter 10, pgs. 219-229
King, pgs 215-216, problems 10,19
King, pgs 217, problems 6
10/19/09

Program Organization'cont'd
   - local/external variables
   - scope



10/21/09

Go over Exam 1


Exam 1 Review
Exam 1 Answers
Free Response Key

Programming Assignment 4 (For a Grade)
10/23/09

Program Organization cont'd
   - blocks
   - organizing a C program

King, Chapter 10, pgs. 229-237
King, pgs. 237-238, problems 1,2
10/26/09

Pointers
   - pointer variables
   - address and indirection operators

King, Chapter 11, pgs. 241-245
King, pgs. 255 problems 1,2
10/28/09

Pointers cont'd
   - pointer assignment

King, Chapter 11, pgs. 245-249

10/30/09

Pointers cont'd
   - pointers as arguments
   - pointers as return values

King, Chapter 11, pgs. 249-255
King, pgs. 255-256, problems 3,4,6,8
11/2/09

Exam 2 Review



11/4/09

Exam 2



11/6/09

Strings
   -- string literals
   -- string variables
   -- reading and writing strings

King, Chapter 13, pgs. 277-287 King, pgs 308-309, problems 1,2,3,5a
11/9/09

Strings cont'd
   -- accessing chars in strings
   -- C string library

King, Chapter 13, pgs. 287-296 King, pgs 309-310, problems 6,7,8,9,12
11/11/09

Veteran's Day



11/13/09

Strings cont'd
   -- string idioms
   -- arrays of strings

King, Chapter 13, pgs. 296-308 Programming assignment 5 (For a Grade)
King, pgs 310-311, problems 13,17,18,1
11/16/09

Structures, Unions, and Enumeration
   -- Structure variables
   -- Structure types

King, Chapter 16, pgs. 377-386 King, pgs 408, problems 2,3,5
11/18/09

Structures, Unions, and Enumerations cont'd
   -- Nested arrays and structures

King, Chapter 16, pgs. 386-395 King, pgs 409, problems 8,9
11/20/09

Structures, Unions, and Enumerations cont'd
   -- Unions
   -- Enumerations

King, Chapter 16, pgs. 396-407 King, pgs 410-411, problems 11,13,16,18,19
11/23/09

Advanced Use of Pointers
   -- Dynamic memory allocation
   -- Dynamic allocation of strings and arrays

King, Chapter 17, pgs. 413-422 King, pgs 453, problems 2,3
11/25/09

No Class



11/27/09

Thanksgiving Holday



11/30/09

Advanced Use of Pointers Cont'd
   -- Deallocating storage
   -- Linked Lists

King, Chapter 17, pgs. 422-428 Programming Assignment 6(For a Grade)
King, pgs 453, problems 4
12/02/09

Advanced Use of Pointers Cont'd
   -- Linked Lists

King, Chapter 17, pgs. 428-438 King, pgs 454, problems 7,11,12
12/04/09

Advanced Use of Pointers Cont'd
   -- Pointers to Pointers
   -- Pointers to Functions

King, Chapter 17, pgs. 438-453 King, pgs 455, problems 15,16
12/07/09

Exam 2 Review


Exam 2 Review