• Tutorial Problem Sets

    Tutorial Sheet I is here: in Postscript or PDF


    Tutorial Sheet II is here: in Postscript or PDF


    Tutorial Sheet III is here: in Postscript or PDF


    Tutorial Sheet IV is here: in Postscript or PDF


    Tutorial Sheet V is here: in Postscript or PDF


    Tutorial Sheet VI is here: in Postscript or PDF


    Tutorial Sheet VII is here: in Postscript or PDF


    Tutorial Sheet VIII is here: in Postscript or PDF






  • Some solutions

    Sample solutions to tutorial sheets will appear here...
    Tutorial Sheet I in Postscript or PDF

    Tutorial Sheet II

  • Questions 1 and 2 in
             Postscript or PDF
  • Question 3
             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.
  • Question 1:
             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
  • Question 2:
             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