There are three tasks for this week’s lab:
- Activate your CSE account.
- Write your first program!
- Play with BlueJ
There are three tasks for this week’s lab:
As we said in the first lecture, you can’t learn programming without practice and the lab exercises are a vital part of this subject. COMP1400 labs will take place in the CSE labs as listed in the official timetable. Please make sure you are enrolled in a lab and you know which lab you are attending. Take a look at the map to locate your lab. Some are in the Elec Eng building and some are in the Mech Eng building.
Each of you will receive a new CSE account for this subject, which you will need to use to submit your assignments. To activate your account, please read and agree to the “Yellow Form“.
The first set of lab exercises will be out later today.
Welcome to all new COMP1400 students for 2012.
As we said in lectures, this blog will be our primary means of communicating important subject announcements including lab execises and assignments. Please check it regularly for updates.
I have posted my solution to assignment 3 for you to download.
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:
The exam booklet will include print-outs of relevant parts of the Java API website so you do not have to memorise this information.
There are no questions on writing code (they were in the prac-exam).
Good luck.
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++;
}
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 does what you expect.
[Read more →]
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.
My solutions to assignment 1 and assignment 2 are now available for you to download.
The Prac Exam for COMP1400 will take place in labs in Week 13.
The questions below are a sample of the kinds of questions you will receive in the test.