Exercise 09: Modules

For this assignment you will write two programs stats and fibonacci.

You will need to throughly review the instucions for each program to understand the requirements.

  1. Stats Instructions
  2. Fibonacci Instructions

Local Testing

I HIGHLY recommend testing your programs to avoid excessive manual testing. After all, computer are great a repitious task, so take advantage of that! :)

For the stats program, you will be able to use the provided Makefile.

make gh-test-stats

If you want to test fibonacci, you can create your own Makefile rule or type the following out each time:

gcc -std=c99 -Wall tests.c fibonacci.c -o tests
./tests

If the tests don’t pass or there are compiler errors, review the output and then re-run the tests above until you are passing the testing locally.

These tests are not as strict about the output provided from your programs. Instead they will test the actual results your functions are generating. Your main programs for each application will be evaluated separately.

Submission

When you are confident your programs function correctly submit your work by saving your code and then using git to add the Makefile(s), .c, and .h file(s), commit, and pushing your changes. Once you have pushed, check GitHub to see the results of testing your code. If any of your programs do not pass the tests, you may make changes and submit again. To submit again, simply add the file(s) that you changed, commit, and push again.

Grading

These assignments are worth a total of 10 points and distributed as follows:

Stats - 3 Points

For full credit your code must pass all the tests and you must meet all the organizational and functional on the assignment page.

Fibonacci - 7 Points

For full credit you must pass all the tests and follow all the requirements on the assignment page. Your functions must not print anything out, the only printing must be done in main(). You will also be graded on proper style.