Course pages 2013–14
Programming in Java
|Alastair Beresford||Andrew Rice|
Game of Life animations (Tick3*)
View all the submissions for Tick3*: all submissions
Audio representations of the Game of Life (Tick 5*)
Students are expected to attend one practical session per week on Thursdays which run from 2-4pm and 4-6pm. You may attend both sessions if you wish. The dates of the practical sessions associated with this course are as follows:
- Thursday 14th November
- Thursday 21st November
- Thursday 28th November
- Thursday 16th January
- Thursday 23rd January
- Thursday 30th January
- Thursday 6th February
All classes take place in the Intel Teaching Lab in the Computer Laboratory.
When you are ready to collect a tick you should sign-up online for a slots with a ticker. These ticking slots take place during the practical session in the Intel lab. You should take your work to your ticker at your chosen time. Tickers will also be able to assess ML ticks for you.
Note: the signup site is known not to work with Internet Explorer.
- Introduction (PDF) and optional Android tutorial (PDF)
- Workbook 1 (PDF) and Tick 1* (PDF)
- Workbook 2 (PDF) and Tick 2* (PDF)
- Workbook 3 (PDF) and Tick 3* (PDF)
- Workbook 4 (PDF) and Tick 4* (PDF)
- Workbook 5 (PDF) and Tick 5* (PDF)
- Workbook 6 (PDF) and Tick 6* (PDF)
- Workbook 7 (PDF) and Tick 7* (PDF)
The printed workbooks contain (at the very least!) the following errors. Errors are indexed by workbook (W), page (P) and line (L), which may be negative, indicating that the reader should count upwards from the bottom of the page. These errors have been corrected in the on-line versions of the workbooks shown above. If you find any further errors, please email ticks1a-admin[at]cl.cam.ac.uk.
|4||9||5||by the index number of the pattern||by the line number of the pattern||mbg28|
|1||14||15||boolean t4 = t1 | t2 & t3; //false||boolean t4 = t1 | t2 & t3; //true||yy363|
Bit visualisation programs
You can download three bit visualisation programs from this website:
- b2d.jar (exploring binary to decimal conversion)
- d2b.jar (exploring decimal to binary conversion)
- bitwise.jar (exploring bitwise operators)
To use the programs, download them to your home directory, start a new shell, and run the jar file as described in the workbook. For example, to run bitwise.jar you would type the following:
java -jar bitwise.jar
Each program will print out a helpful usage message which you can use to work out what additional options to give the program. Ask a demonstrator for help if you get stuck.