Project 0: Addition demo project

This project serves as an introduction to the build, testing, and submission framework used in this class. The actual code you will write for this project is trivial, allowing you to focus on the mechanics of completing a project according to the instructions in the project guide.

Here is the path to the starter tarball file on stu:

/cs/students/cs261/f16/src/p0-add.tar.gz

Requirements

Here is the function that you must implement in p0-add.c:

  • int add_abs (int num1, int num2) - Returns the sum of the absolute values of the two parameters.

For this project (and ONLY this project!) you do NOT need to modify main.c. You should still study it and make sure you understand what it does.

Hints

The private test suite for this project (and ONLY this project) will be posted on stu at the following path:

/cs/students/cs261/f16/src/private.c

You can use this to see what sort of input the private test is providing.

Submission

Due: Fri, Sep 2 at 23:59:59 ET (midnight)

Please see the project guide for general project help. Please refer to the coding standards for coding practice guidelines.