Homework 7
Find the maximum of up to 100 numbers (integers).
Input: how many numbers, their values
Output: the largest number
Use an array and max.c as a starting point.
Remember:
It is due Mo 3/15 at 5 p.m., late homeworks will be penalized !
Turn in a print-out of your code and a scriptfile.
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.