Business Programming

Course announcements for INFS1609 and INFS2609

Business Programming random header image

Lab Week 2 – Getting to know BlueJ

August 1st, 2013 · Comments Off on Lab Week 2 – Getting to know BlueJ · Labs

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:

Welcome to COMP1400/INFS1609

July 28th, 2013 · Comments Off on Welcome to COMP1400/INFS1609 · Announcements

This course introduces you to the foundations of the programming discipline, which underlies most technical subjects such as software design, data management and algorithms. It will involve both a theoretical component (e.g. learning about basic programming concepts like loops, arrays and functions) as well as a practical component (e.g. implementing simple algorithms in a computer […]

[Read more →]

Tags:

Lab Week 7 – Multidimensional Arrays

August 23rd, 2012 · Comments Off on Lab Week 7 – Multidimensional Arrays · Labs

In this tutorial you will be working with 2D arrays to do some image manipulation. Download the BlueJ project ASCIIArt.zip. Inside you will find a class that contains the method readImage(String url). This method takes the URL for any image on the web and converts it into a 2D array of integers. Each entry in the 2D […]

[Read more →]

Tags:

Assignment 2 – The Game of Life

August 23rd, 2012 · Comments Off on Assignment 2 – The Game of Life · Assignments

DUE DATE: 11:59pm Friday 14 September. Assignment Submission now setup For this assignment you will write a program that implements Conway’s Game of Life. The board is a rectangular array in which a cell is designated as either live or dead. A few simple rules tell you how to create a new generation (i.e. a […]

[Read more →]

Tags:

Lab Week 6 – More Arrays

August 16th, 2012 · Comments Off on Lab Week 6 – More Arrays · Labs

Finish the exercises from last week than attempt the Using Arrays exercises in the example problems below. Here are some hints about how to do exercise 2 from last week. Suppose we have an array of some fixed length, say 10. Java initialises all the elements to zero. Now let’s assume that we only want […]

[Read more →]

Tags:

Lab Week 5 – Algorithms

August 9th, 2012 · Comments Off on Lab Week 5 – Algorithms · Labs

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 ascending […]

[Read more →]

Tags:

Assignment 1

August 2nd, 2012 · Comments Off on Assignment 1 · Assignments

Updated: 2012-08-07 17:00 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 […]

[Read more →]

Tags:

Lab Week 4 – Loops and Arrays

August 2nd, 2012 · Comments Off on Lab Week 4 – Loops and Arrays · Labs

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:

Lab Week 3 – Data Types

July 28th, 2012 · Comments Off on Lab Week 3 – Data Types · Labs

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 constant π. […]

[Read more →]

Tags:

Lab Week 2 – Getting to know BlueJ

July 17th, 2012 · Comments Off on Lab Week 2 – Getting to know BlueJ · Labs

You will be working in Quad lab 7. Experiment with the BlueJ project we saw in lectures. Login with your zPass login and password. Download the ‘Turtle’ project zip file from here . Unzip both files in your “My Documents” folder. In the ‘Start’ menu, select ‘Programs’ and click on BlueJ. Select ‘Open Project’ from the […]

[Read more →]

Tags: