Assignments
This page contains programming exercises, projects, video lectures, example code, notes, and reading for the topics in this course.
Now that classes have moved to remote instruction, the dates of new items posted here refer to the date that the item was posted, rather than the date that things are due.
Here is a link to the instructions for the final project.
Monday, April 20
- Here are 2 videos that address topics that are most directly applicable to card games, but would be useful for other programs where you need to randomize the elements of an array, or store arrays of structures.
Friday, April 10
- Watch this video:
- See the file from the video:
- Read Chapter 15, section “Special Functions for Working with Files”
- Complete the File Integer Sum activity by Monday, April 13
Wednesday, April 8
- Watch this video:
- See the files from the video:
- Complete the Resizing Arrays activity by Friday, April 10
Monday, April 6
- Watch this video:
- See the file from the video:
- Read Chapter 16, section “Dynamic Memory Allocation”. Note that the book explicitly casts the return value of
malloc()
and calloc()
to the appropriate pointer type, while my code does not. Older versions of C required explicit casting, but newer versions do not.
- Complete the Heap Allocate activity by Wednesday, April 8
Monday, March 23
- Continue working on the Roll Dice activity if you did not finish it in class.
Friday, March 6
Files from the videos:
Wednesday, March 4
- Finish the Pointers to Structs activity if you did not do so in class.
- Reach Chapter 10 section “Pointers and Arrays” and Chapter 16, section “Command-line Arguments”. There is an example in this section that deals with files in a way that we have not talked about yet, do not worry about that for now.
- Watch these videos:
- Take this quiz
Files from the videos:
Monday, March 2
- Complete the Pointer Parameters exercise if you did not already do so in class.
- Read Chapter 10 section “Working with Pointers and Structures”, stopping when you get to the “Linked List” subsection
- Watch this video:
- Take this quiz
Files from the video:
Friday, February 28
- Complete the Letter Frequency exercise if you did not do so in class.
- Read Chapter 10, only the following sections: “Pointers and Indirection”, “Defining a Pointer Variable”, “Using Pointers in Expressions”, “Pointers and Functions”
- Watch this video:
- Take this quiz
Files from the video:
Wednesday, February 26
- Complete the Reverse String exercise if you did not do so in class.
- Read Chapter 15, skim or skip the section on
printf()
and scanf()
, and stop when you get to “Input and Output Operations on Files”
- Watch this video:
- Take this quiz
Files from the video:
Monday, February 24
- Complete the Best Pizza Value exercise if you did not do so in class.
- Read Chapter 9, you can stop when you get to Program 9.7, Counting Words
- Watch these videos
- Take this quiz
Files from the videos:
Friday, February 21
- Complete the structures exercise if you did not do so in class.
- Read Chapter 8, only section “Arrays of Structures”
- Watch this video
- Take this quiz
Files from the video:
Wednesday, February 19
- Read Chapter 8 up to and including section “Initializing Structures” from the book
- Watch this video
- Take this quiz
Files from the video:
Wednesday, February 12
Prepare for the exam on Friday. See the study materials to help you focus your efforts.
Monday, February 10
Friday, February 7
- Complete the stats module exercise if you did not do so in class
- From the book read Chapter 12 until you reach them “Program Portability” subsection, then jump to section “The #include statement”. There are a couple brief mentions of strings and pointers which you can ignore for now.
- Watch this video
- Take this quiz
Files from the video:
Wednesday, February 5
- Complete the array functions activity if you did not do so in class
- Read Chapter 14, only section “Dividing Your Program into Multiple Files” and the subsection “The make Utility” from the book
- Watch this video
- Take this quiz
Files from the video:
Monday, February 3
- Complete the paycheck function activity if you did not do so in class
- Read section “Functions and Arrays” from Chapter 7 in the book
- Watch this video
- Take this quiz
Files from the video:
Friday, January 31
- Complete the array exercises if you did not do so in class
- Read chapter 7 in the book. You may stop when you reach the “Functions and Arrays” section.
- Watch this video
- Take this quiz
Files from the videos:
Wednesday, January 29
- Complete the nested loops activities if you did not do so in class. Instructions for this one are in the email from git-keeper and the C files themselves.
- Read chapter 6 in the book. You may stop when you reach the “Character Arrays” section.
- Watch these videos
- Take this quiz
Files from the videos:
Monday, January 27
- Complete the Loops Exercises if you did not finish them in class
- Read chapter 5 in the book.
- Watch these videos
- Take this quiz
- If you have not done so already, take this quiz which I forgot to link to last time. It is a very short one.
Files from the videos:
Friday, January 24
- Complete the Calculations exercises if you did not finish them in class
- Read chapter 4 in the book
- Watch these videos
Files from the videos:
Wednesday, January 22
- Complete the Fix Programs exercise if you did not finish it in class
- Read chapter 3 in the book
- Watch these videos
- Take this quiz
Files from the videos:
Friday, January 17
Here are the files that were created in the video. Feel free to download them and play around with them if you want.
Wednesday, January 15