COMP1400 – Programming for Designers

Class announcements for Programming for Designers

COMP1400 – Programming for Designers random header image

Entries Tagged as 'Lab'

Week 13 Lab – Prac Exam

October 20th, 2013 · No Comments · Announcements, Lab

Don’t forget that the prac exam will be held in the regular lab times in week 13. This is compulsory and comprises 20% of your marks. It will have the same format as the mid-semester prac exam, except that you’ll have the full two hours. Like the mid-semester exam, you will be allowed to bring […]

[Read more →]

Tags:

Week 12 Lab – HashMaps

October 20th, 2013 · No Comments · Lab

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 new name/number pair and you should be able […]

[Read more →]

Tags:

Week 11 Lab – Inheritance

October 12th, 2013 · 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 classdiagram displays the inheritance relationship. Open the source code of the DVD class and remove the ‘extends Item‘ phrase. Close […]

[Read more →]

Tags:

Week 10 Lab – Random Class

October 4th, 2013 · No Comments · Lab

Monday labs: Since Monday is a public holiday, the Monday groups should try to go to another lab just for this week. 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 […]

[Read more →]

Tags:

Week 9 Lab – Classes and ArrayLists

September 22nd, 2013 · No Comments · Lab

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 examine their fields. Use the getName() method to […]

[Read more →]

Tags:

Week 8 Lab – ArrayLists and Classes

September 15th, 2013 · No Comments · Lab

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 covered in lectures. The constructor uses a throw statement […]

[Read more →]

Tags:

Week 6 Lab – More Classes and Objects

August 30th, 2013 · No Comments · Lab

Task 1: Universities This first task should be attempted before coming to the lab. 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 […]

[Read more →]

Tags:

Lab Week 4 – Loops and Arrays

August 15th, 2013 · 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 8th, 2013 · No Comments · Lab

This week’s lab exercises are concerned with data types, which were introduced in last week’s lectures. Feedback on your progress At the start of the lab, you’ll be given a short quiz on writing simple methods. This shouldn’t take more than 15 minutes. Each week, we will ask you short quiz questions to encourage you […]

[Read more →]

Tags:

Lab Week 2 – Getting to know BlueJ

August 1st, 2013 · 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: