COMP1400 – Programming for Designers

Class announcements for Programming for Designers

COMP1400 – Programming for Designers random header image

More arrays

August 19th, 2012 · No Comments · Lab

This week’s tut covers two very common activities in programming: mapping and filtering. Write a method mapDouble which takes in an array of integers and returns a new array containing the double of each entry in the first array. Eg: int[] data = {1, 3, 4, 2, 0, 5, -2}; int[] doubled = mapDouble(data); The […]

[Read more →]

Tags:

Tutorial Wk 5

August 9th, 2012 · No Comments · Lab

If you did not finish all the exercises from last week’s lab, try to finish them off this week. If you have already completed those exercises, try these ones. Exercise 1. Write a method that accepts two arguments, an integer and an array of integers. Assume that the numbers in the array are sorted in […]

[Read more →]

Tags:

Assignment 1

August 6th, 2012 · No Comments · Assignments

Due: 11:59pm Friday 17 August (i.e. the end of week 5) This assignment is about arrays. You will write three methods to manipulate arrays. The first two are easy. The third one will require more thought about the design. You will submit the assignment using the CSE give system (see below). Download the BlueJ project, […]

[Read more →]

Tags:

Tutorial – Wk4

August 2nd, 2012 · No Comments · Lab

This week, you will download the BlueJ project Week4.zip and write methods to manipulate arrays. Two methods are given to you complete. You don’t have to do anything to them. The method readArray public int[] readArray() reads a list of numbers, one per line, ending with a blank line, and returns an array containing the […]

[Read more →]

Tags:

Tutorial Wk 3 – Data types

July 27th, 2012 · No Comments · Lab

The exercises below use the Tut3.zip project for BlueJ. Data types What data type would you use to represent the following values? Why? The length of a piece of string. The number of students at UNSW. A person’s age. The mass of the sun. The exact number of stars in the Milky Way. The mathematical […]

[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:

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:

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:

Ass 3 solution

October 31st, 2011 · No Comments · Assignments

I have posted my solution to assignment 3 for you to download.

[Read more →]

Tags: