I have posted my solution to assignment 3 for you to download.
Entries from October 31st, 2011
Exam
October 30th, 2011 · 4 Comments · Uncategorized
The COMP1400 exam is this Thursday (Nov 3) at 8:45am in Leighton Hall of Scientia (but make sure you confirm this on myUNSW). It is a 2 hour exam. It will consist of: 20 multiple choice questions testing your understanding of various aspects of Java 5 short-answer question on general programming concepts 2 questions which [...]
Tags:
Loops
October 16th, 2011 · No Comments · Uncategorized
To save people constantly looking up how to do loops in the lecture notes, here’s a simple example that prints the numbers 0 to 4 inclusive. As a for loop: for(int i=0; i<5; i++) { System.out.println(i); } As a while loop: int i=0; while(i<5) { System.out.println(i); i++; }
Tags:
Ass 3 Unit Testing
October 11th, 2011 · No Comments · Assignments
It turns out that testing the play() method on your classes is tricker than I had anticipated when I set assignment 3. To test this method properly, you need to set up a game in a known situation, forcing one of the players to play the card you are testing and then check that it [...]
Tags:
Prac Exam FAQs
October 11th, 2011 · 2 Comments · Uncategorized
FAQs about the Prac Exam: Can I bring my laptop? No. You must use the lab computers. Can I bring my own files on a USB stick? Yes. Will I have access to the web? Yes, but we will be monitoring your web access to make sure you are not communicating with other students.
Tags:
Assignment solutions: ass1 & ass2
October 11th, 2011 · No Comments · Assignments
My solutions to assignment 1 and assignment 2 are now available for you to download.
Tags:
Sample Prac Exam
October 10th, 2011 · 5 Comments · Lab
The Prac Exam for COMP1400 will take place in labs in Week 13. Please make sure you turn up to your designated lab time. You will not be allowed to sit the exam at another time. The exam will be open book, so you will have access to the web and any texts you care [...]
Tags: