COMP1400 – Programming for Designers

Class announcements for Programming for Designers

COMP1400 – Programming for Designers random header image

Entries Tagged as 'Lab'

Lab Wk 2- Getting to know BlueJ

July 17th, 2012 · No Comments · Lab

There are three tasks for this week’s lab: Activate your CSE account. Write your first program! Play with BlueJ

[Read more →]

Tags:

Labs

July 17th, 2012 · No Comments · 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 […]

[Read more →]

Tags:

Sample Prac Exam

October 10th, 2011 · No 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 […]

[Read more →]

Tags:

Tut 10

September 25th, 2011 · No Comments · Lab

The following exercises are taken from chapter 8 of the textbook. Exercise 8.4 Open the project dome-v2. This project contains a version of the DoME application rewritten to use inheritance, as described above. Note that the class diagram displays the inheritance relationship. Open the source code of the DVD class and remove the ‘extends Item‘ […]

[Read more →]

Tags:

Tutorial 9

September 15th, 2011 · No Comments · Lab

JUnit Testing For the exercises this week, download the diary-testing-junit-v2 project. These examples and exercises are based on chapter 6 of the textbook. Using the diary-testing-junit-v2 project, create a method in DayTest to check that findSpace returns the value of 10 for a one-hour appointment if a day already has a single one-hour appointment at […]

[Read more →]

Tags:

Lab 7 – debugging

August 25th, 2011 · No Comments · Lab

For this project you will be debugging a simple ‘games portal’ program. You can download the program as a Bluej project here. The code is complete and compiles correctly but it has a number of bugs in it that mean it doesn’t work properly. It is your job to find them. There are two classes […]

[Read more →]

Tags:

lab 6

August 18th, 2011 · No Comments · Lab

It seems that most classes spent week 5 working on the assignment, so my advice is to use this week to go back to lab 5 and continue working on it, or do revision from any of the earlier labs.

[Read more →]

Tags:

lab 5 – lists

August 11th, 2011 · No Comments · Lab

Your task today is to implement a program to represent decks and hands of playing cards. Download the cards.zip file and uncompress it. It contains an incomplete BlueJ project called cards. Open the project and inspect the classes: Card – this represents a single playing card. Deck – this represents a deck of cards. The […]

[Read more →]

Tags:

lab 4 – object interaction

August 5th, 2011 · No Comments · Lab

Task 1: Universities Suppose we were writing a program to administer a university. Discuss: What are the different levels of abstraction we might use to represent the university? Choose an object at the mid-level of your hierarchy. What kind of public interface might it provide? What private implementation details might it hide? Task 2: Return […]

[Read more →]

Tags:

Tutorial Wk3 – designing classes

July 28th, 2011 · No Comments · Lab

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 of the TicketMachine class. Experiment with the addMoney() method. What happens if you: Add 0 cents? Add an negative amount? Is this behaviour correct? Experiment with the purchaseTicket() […]

[Read more →]

Tags: