COMP1400 – Programming for Designers

Class announcements for Programming for Designers

COMP1400 – Programming for Designers random header image

Entries Tagged as 'Uncategorized'

Random Guessing Game Exercise

October 10th, 2013 · No Comments · Uncategorized

I have made this additional exercise for students who would like more practice on using Random (along side ArrayLists, Loops and Conditional Statements). Solutions have been provided but it is strongly recommend you attempt the task yourself before checking them. Random Guessing Exercise: This will be a game where you choose a range for a […]

[Read more →]

Tags:

Wk8 Lab Solutions and Extra Questions

September 19th, 2013 · No Comments · Uncategorized

Here are my solutions to your Week 8 ArrayList and Classes lab. I have added two extension questions. I added comments so that you may follow along with the logic. I strongly suggest that you try these two questions yourself before checking my solutions. The questions are: Question 1 Write a method ‘newVIPList’ that takes […]

[Read more →]

Tags:

Having trouble with this week’s lab?

September 2nd, 2013 · No Comments · Uncategorized

If you’re having trouble with this week’s lab, take a look at the following example and step through the ‘main’ method inside the ‘Main’ class. Using Objects Demo

[Read more →]

Tags:

Extra Exercises on Loops and Arrays

August 26th, 2013 · No Comments · Uncategorized

If you’d like some extra practice writing methods involving loops and arrays, take a look at the following two links: Loops Exercises Arrays Exercises  

[Read more →]

Tags:

Lab Week 5 – Arrays and Classes

August 22nd, 2013 · No Comments · Uncategorized

If you didn’t finish last week’s exercises, continue on with those. In particular, make sure you understand how to use loops and arrays (i.e. the last two exercises). Classes Investigating the TicketMachine: Download the TicketMachine project we have been building in lectures. Unzip it on your desktop and open the project with BlueJ. Create an instance […]

[Read more →]

Tags:

Lab Wk 12 – Uno Game

October 7th, 2012 · No Comments · Uncategorized

Download the Uno Game BlueJ project shown in the lecture. Constructors Use the debugger to watch how cards are constructed: Set a breakpoint in the WildDrawCard constructor (line 17). Create a new WildDrawCard by calling the constructor.. Use the ‘step into’ button to step through the code. Observe how the super() call works. Repeat this […]

[Read more →]

Tags:

Assignment 3 – DRAFT

September 19th, 2012 · No Comments · Uncategorized

In this assignment you will be implementing a simple job queue using objects and array lists. Due date: Midnight Sunday Oct 14 (end of week 12) Topics covered This assignment covers the following ideas: OO design: Abstraction and encapsulation Implementing a class with fields, constructors and accessor methods, Handling collections of objects with ArrayLists, Implementing […]

[Read more →]

Tags:

Tut Wk 9 – Classes and Lists

September 16th, 2012 · No Comments · Lab, Uncategorized

Classes Consider a database of student records for the university. What kind of data would be associated with each student? Download the Lab9 BlueJ project. It defines a new class Student which contains some student information Create students a number of students in BlueJ. Use the Inspector to examine their fields. Use the getName() method […]

[Read more →]

Tags:

Textbook

July 17th, 2012 · No Comments · Uncategorized

It has just come to our attention that the new edition of the textbook costs almost twice as much as the old one! If you can get your hand on an old copy of the 4th Edition text this should be fine for everything we will be doing in the subject.

[Read more →]

Tags:

Welcome to COMP1400 2012

July 17th, 2012 · No Comments · Uncategorized

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.

[Read more →]

Tags: