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 […]
Assignment 3 – Objects and ArrayLists
October 4th, 2013 · No Comments · Assignments
In this assignment you will be implementing a simple job queue using objects and array lists. Due date: Midnight Friday 25 Oct (end of week 12) Topics covered This assignment covers the following ideas: OO design: Abstraction and encapsulation Implementing a class with fields, constructors and accessor methods, Handling collections of objects with ArrayLists, Implementing […]
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 […]
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 […]
Tags:
Assignment 2 – Classes and Objects
September 5th, 2013 · No Comments · Assignments
NOTE: check this web site regularly for updates and clarifications to the assignment specification. Due Date: Sunday week 8 (23:59:59 22 September 2013) ChangeLog: 11-09-2013: Submission for Assignment 2 enabled Task Suppose you are designing a program for an automated teller machine. The ATM generates transactions that are sent to the banks central computer for […]
Tags:
Mid-Term Practical Exam in Week 7
August 30th, 2013 · No Comments · Announcements
A practical exam will be held in the first hour of next weeks lab. You will be given several programming exercises that you will do on the computer and submit using the same give system that you used to submit the first assignment. The full specification will be given in the lab for next week.
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 […]
Tags:
Lab Week 5 – Arrays and Classes
August 22nd, 2013 · No Comments · Uncategorized
If you didn’t finish last week’s exercises, continue on with those. In particular, make sure you understand how to use loops and arrays (i.e. the last two exercises). Classes 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 […]
Tags:
Assignment 1 – Loops and Arrays
August 15th, 2013 · No Comments · Assignments
Due: 11:59pm Sunday 1 September (i.e. the end of week 5) This assignment is about loops 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, Assignment1.zip. […]
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 […]
Tags: