Homework 4
Modify hw4.c so that it plays "fizz-buzz".
If the number devides by 3 and 5, it is "fizz-buzz".
If the number devides by 3 only, it is "fizz".
If the number devides by 5 only, it is "buzz".
Otherwise, it is just the number.
To turn in on Wednesday in class:
- a printout of your C code and
- a printout of your scriptfile showing
- that your C code compiles
- that your program plays correctly.
You will be graded on:
- correctness: (6 points)
- correct algorithm and results (incl. thorough testing)
- robustness (e.g. no division by zero)
- following the specification (e.g. output specification)
- style: (4 points)
- use of comments
- indentation (use TAB key in emacs)
- meaningful variable and function naming
- simplicity, modularity etc.