COMP1400 – Programming for Designers

Class announcements for Programming for Designers

COMP1400 – Programming for Designers random header image

Entries Tagged as 'Lab'

Week 12 Lab – HashMaps

October 19th, 2014 · No Comments · Lab

The self-test quiz for this week is here. This week’s tutorial is taken from the textbook, exercises 5.25 – 32 on page 174-175. They are reproduced below. The task is to implement a simple phone book where numbers are associated with names, both represented as strings. Your phone book should be able to add a […]

[Read more →]

Tags:

Week 11 Lab – Inheritance

October 12th, 2014 · No Comments · Lab

The self-test quiz for this week is here. 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 classdiagram displays the inheritance relationship. Open the source code of the DVD […]

[Read more →]

Tags:

Week 10 Lab – Random Numbers

October 6th, 2014 · No Comments · Lab

The self-test quiz for week 10 is here. These exercises are taken from Chapter 5 of the text book. You should also use this week to catch up with previous labs. Exercise 5.14 Write some code (in BlueJ) to test the generation of random numbers. To do this, create a new class called RandomTester. You can […]

[Read more →]

Tags:

Week 9 Lab – Classes and ArrayLists

September 22nd, 2014 · No Comments · Lab

The self-test quiz for week9 can be found here. 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 a few different students in BlueJ. Use the Inspector to […]

[Read more →]

Tags:

Week 8 Lab – ArrayLists and Classes

September 14th, 2014 · No Comments · Lab

The self-test quiz for week 8 is here. ArrayLists and Classes Download the BlueJ project club.zip for this week’s exercises. There are three classes in the project that help you to represent a club and its members. The Member class is fully defined and contains all the methods you need. Note a couple of things we haven’t […]

[Read more →]

Tags:

Week 6 Lab – Catch Up and More on Classes and Objects

August 31st, 2014 · No Comments · Lab

The self-test quiz for this week is here Task 1: Catch Up If you haven’t completed exercises from previous labs, you may use this week’s lab to catch up on unfinished work. If you are up-to-date, you can carry on with the following exercises. Task 2: Return to the Ticket Machine Go back to the […]

[Read more →]

Tags:

Lab Week 5 – Designing Classes

August 24th, 2014 · No Comments · Lab

The self-test quiz for this week is here. Assignment 1 If you haven’t started working on assignment 1, follow the assignment instructions to download the skeleton project. Make sure you understand what is required. If not ask your tutor. Assignment submission will be enabled later in the week. Investigating the TicketMachine: Download the TicketMachine project we’ve […]

[Read more →]

Tags:

Lab Week 4 – Loops and Arrays

August 16th, 2014 · No Comments · Lab

In this lab, we’ll practice creating a new BlueJ project from scratch. Use the “New” menu item to make a new class. Call it Week4. All the exercises below can be done in the same class file. You may not be able to finish all the questions during the lab time. Make sure that you […]

[Read more →]

Tags:

Lab Week 3 – Data Types

August 10th, 2014 · No Comments · Lab

Feedback on your progress Each week, we will post several short quiz questions to encourage you to do some preparation before the lab. The intention of the quizzes is to give you quick feedback so that you know if you understand the material in the course so far and to encourage you to prepare for […]

[Read more →]

Tags:

Week 2 – Getting to know BlueJ

July 30th, 2014 · No Comments · Lab

There are three tasks for this week’s lab: Activate your CSE account. Write your first program! Play with BlueJ Activate your CSE account The first thing we will do in this week’s lab is activate your CSE account, if you haven’t done so already. Login as ‘newuser’ Follow the prompts to activate your account. Write […]

[Read more →]

Tags: