Tutorial Sheet I is here:
in Postscript or
PDF |
|
Sample solutions to tutorial sheets will appear here...
Postscript or PDF number_sum-for.c reads numbers from a file and sums them with a for loop. number_sum-while.c reads numbers from a file and sums them with a while loop. Tutorial Sheet III: The solutions, in the form of C programs, can be seen here. stats.c reads the data from the keyboard. Download it here stats.files.c reads the data from a file. Download it here stats.cmdline.c reads file name from the command-line. Download it here abs_sum.c sums the absolute values of numbers read in from a file. Download it here If you would like to download a small data file to test the last two programs click for tmp.dat Tutorial Sheet IV in Postscript or PDF |