CSSE 120 -- Intro. to Software Development

Homework 26

  1. Don't forget to refer to the Python vs C comparison document. You may find this helpful as you try to do things in C that you already know how to do in Python. Feel free to suggest things that we might add to this document.
  2. There is no Angel quiz for the next session.
  3. You must do this assignment using Eclipse and the PointsLinesVectors project that you checked out from your individual SVN repository in class.

    Be sure to check out that project into your Eclipse C workspace, not your Python workspace.

  4. Read the description in the file README_FIRST.txt that is included in the project.
  5. In the source file point-line-functions.c, edit the initial comment to include your name and today's date.

    NOTE: After your repositories were populated we discovered that line 98 of points-lines-main.c should read:

      printf("v3 is the vector from p2 to midpoint of p1 and p2.\n");
    instead of the code that you see on that line. Please, change that line of your code accordingly.
  6. Stubs for all of the functions (and complete implementations of some of them) have been provided for you in point-line-functions.c. The file also contains short specifications of each function as comments.

    You are to complete the definitions of all of the functions below. None of them requires more than a few lines of code.

    When your code is working, commit it to your repository.