|
Computer Engineering 1
Introductory Programming
Semester 1, 1997
|
Lecturer: Clem Baker-Finch
School of Computing,
University of Canberra
Phone: 2012408
Office: 11A38
Mailbox: 111
E-mail: clem@ise.canberra.edu.au
The aim of this part of Computer Engineering 1 is to introduce you to the basic concepts of programming and more particularly, program design, using the language Haskell. For information about the syllabus, assessment, textbooks and so on, you should refer to the Initial Handout for the unit.
This web page is intended to provide you with access to lecture notes, assignments and laboratory exercises as well as other material that may be helpful for your study. It will be developed as the semester progresses.
These notes are in Postscript. They may be viewed using Ghostview or some other Postscript-capable viewer.
The notes are also available in two-up format for printing purposes.
The scripts from the notes are available separately in plain text format.
These exercise sheets are in Postscript. They may be viewed using Ghostview or some other Postscript-capable viewer. Hard copies will be distributed in lectures.
These assignment specifications are in Postscript. They may be viewed using Ghostview or some other Postscript-capable viewer. Hard copies will be distributed in lectures.
- Assignment 1. Due date: Friday, 11th April, 1997 (skeleton scripts)
- Assignment 2. Due date: Wednesday, 7th May, 1997(skeleton scripts)
Advice on mixing Int
and Float
:
In the ddx
function you will want to multiply coefficients (type Float
) with exponents (type Int
). In Haskell, both arguments to (*)
must be the same type. The solution is the coercion function fromIntegral
. Instead of coeff * exp
, write coeff * fromIntegral exp
.
- Assignment 3. Due date: Friday, 23rd May, 1997
If you are running Windows or OS/2 on your home machine, and wish to view the lecture notes or other Postscript documents, you will need to install an appropriate viewer. I recommend Ghostscript and GSview. For Windows 95, for example, you will need to download all of the following files:
gsv23w32.zip
gs503ini.zip
gs503fn1.zip
gs503w32.zip
Unzipping gsv23w32.zip
offers an automatic installation.
If you wish to view Postscript documents from the Faculty's Windows machines, the GSview executables are availabe on D:
drive (Beth) in the directory GStools
. You may find it useful to include it in your browser helper list.
- A summary of functions from the Hugs Prelude.
- For more details, look at the prelude script Prelude.hs.
- Advanced: A diagram displaying the hierarchy of standard Type Classes.
- Advanced: There are some standard Haskell library modules that can be imported into your programs if necessary.
- Advanced: There is also a library of Hugs modules.
- Advanced: Hugs is distributed with some sample scripts.
Other useful materials
Past Exam Paper
- The 1996 mid-year examination paper. This year's paper will be 3 hours duration, open-book and will include material from all of first semester. Last year's paper only examined the functional programming section.
This page is controlled and maintained by Clem Baker-Finch.
clem@ise.canberra.edu.au
Last update: May 1997