CS 242 Fall 2010 : Assignment 3.2

This page last changed on Oct 26, 2010 by m3rabb.

Assignment 3.2 – Writing code to fulfill a specification

This assignment is due in your SVN repository by 2010-10-28 8:00 CST in a directory named Assignment3.2.
Be in contact with the person who wrote your spec if you have questions. It is ok for you to suggest modifications to their spec to make it better. If they agree, go ahead and make the changes. If you are having problems communicating with your spec author, let the course staff know and cc us on your emails to your spec author.

This 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.

  • In Assignment 3.1, you wrote stubs, tests and descriptions of the function for another student to write to aid in processing the binary data file.
  • In Assignment 3.2, you implement the library functions given to you by another student to satisfy the tests they wrote.
  • In Assignment 3.3, you will use the code written by the other student, written to your spec, to complete the assignment.

Roles

As the Implementor

Your moderator will assign you another student’s specification (the author) to implement. As the implementor, you must write a .c file that implements all of the functions in the author’s .h spec. You should be in contact with the author to make sure that you understand the spec. You may suggest changes that can me made to the spec to make it better, however the author must agree in order for you to make any modifications to the original spec.

To implement the functions, 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 3.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 the binary file.

As the Spec Author

As the spec author, you must make yourself available to your implementor to help him/her understand your spec. During the section for Assignment 3.2, as author you will present the code written by the implementor for your spec. You must be prepared to explain:

  1. the strength and weaknesses of their implementation;
  2. the strengths and weaknesses of your original spec; and
  3. any changes that you needs to make to your original spec.
Note to Moderators!
The student you assign to be the implementor of another student (author’s) spec, should be a student whose code they haven’t already read before for CS 242.

Rubric

We will use the standard Grading rubric for this assignment.

Criterion Weight Notes
Basic Preparation 1  
Cleverness 1  
Code submission 2  
Decomposition 2  
Documentation 2 Commented any new methods as well as a README explaining any major changes
Effort 1  
Naming 2  
Overall Design 4  
Performance 1  
Presentation 3  
Participation 3  
Requirements Satisfaction 6 Implements all customer methods specified from 3.1
Testing 4 Wrote additional tests that are missing/necessary
Document generated by Confluence on Feb 22, 2012 18:13

  1. No comments yet.

  1. No trackbacks yet.