Programming Assignments for CS 223

The programs that you turn in will be graded according to the criteria given in the first of the following two links. The second link gives detailed instructions on exactly how you are to turn in your finished assignments.

Program grading criteria
Turning in your assignments

Below are your programming assignments. The due date for each one is contained in the assignment description.

Assignment 5.
Do Homework Problems 4.32 and 4.33 on pages 360-361 of the textbook. Write your solutions in either a Word file or a plain text file and turn in your document. Your solutions should be tables similar to Figures 4.16 on page 283 and Figure 4.18 on page 284. This assignment is due on Friday, December 5.

Assignment 4.
Download and unzip this zip file. In the zip file is a web page, hw4.html that describes the assignment. Follow the directions contained in that web page. This assignment is due on Thursday, November 20.

Assignment 3.
Do Homework Problem 3.31 on pages 231-232 of the textbook. Turn in a zip file containing three files. A (very short) C file with your definition of the decode2() function. The assembly listing that the complier produces from the command
gcc -O2 -S -o decode2.asm decode2.c
along with an explanation of any difference between your compiler output and the output shown on page 232. And finally, the assembly listing produced by the command
gcc -S -o decode2.asm decode2.c
along with an explanation of how this assembly differs from the previous one. In particular, explain why the object code in the second listing is less efficient than the optimized code in the first listing. This assignment is due on Tuesday, October 21.

Assignment 2.
Download and unzip this zip file. In the zip file is a web page, hw2.html that describes the assignment. Follow the directions contained in that web page. This assignment is due on Tuesday, September 30.

Assignment 1.
Download and unzip this zip file. In the zip file is a web page, hw1.html that describes the assignment. Follow the directions contained in that web page. This assignment is due on Thursday, September 11.


Return to the CS 223 lecture page.
Return to the CS 223 home page.


compliments and criticisms