CS 242 Spring 2010 : Assignment 2.3

This page last changed on Mar 17, 2010 by m3rabb.

Assignment 2.3 – Using the Library Implementation

This assignment is due in your SVN repository by the beginning of your section, Thu 2010-03-18 or Fri 2010-03-19, in a directory named Assignment2.3.

– In Assignment 2.1, you wrote stubs and descriptions of the function for another student to write to aid in processing the binary data file.

  • In Assignment 2.2, you implemented the library functions given to you by another student.
  • In Assignment 2.3, you use the code written by the other student, written to your spec, to complete the assignment.

As specified in Assignment 2.1, the binary file is a formatted set of data, and data graphics transformation operations. This data file would be interpreted by a real-time system meant to display the items in the display list. As the author, you must be able to read in the binary file specified at the beginning of the assignment and print out the result of the data graphics transformation operations.

You are expected to use the library you receive from your implementor to complete this assignment. You must treat the library functions as a black box, i.e. the libary functions should not be modified. If you choose not to make use of one or more of implementor’s functions, you must document why in your code.

As in Assignment 2.2, you may make use of files in the C standard library; specifically, you may include any of the following header files:

Your implementation should be able to properly parse an input file composed of the blocks described in Assignment 2.1. It should output to std out the information about each centroid, scaling and rotation factor encountered, and every coordinate as an absolute position as transformed by the current centroid, scaling and rotation factors. We have included a new binary file for 2.3. <- Note: This file has been updated again!

Note to Moderators!
Please spend some time at the end of the section discussing student ideas for projects. Their proposals are due in section the week after spring break.


  • Documentation
    • You provide adequate comments for any new code: 2
    • You provide adequate documentation of your usage of the library functions: 2
  • Functionality
    • You use the library functions properly: 2
    • You can process the data file properly: 4
    • Your provide a meaningful output: 4
  • Discussion Participation
    • You submit your code properly and on time: 2
    • You give a good explanation of your code and use of the library: 4
Total 20

cs242data2.2.bin (application/macbinary)

cs242data2.3.bin (application/macbinary)

cs242data2.3.bin (application/macbinary)
Document generated by Confluence on Feb 22, 2012 18:15

  1. No comments yet.

  1. No trackbacks yet.