Java程序辅导

C C++ Java Python Processing编程在线培训 程序编写 软件开发 视频讲解

客服在线QQ:2653320439 微信:ittutor Email:itutor@qq.com
wx: cjtutor
QQ: 2653320439
Object-Oriented Programming (CITS2210) - Lab 1
Computer Science & Software Engineering
Object-Oriented Programming (CITS2210) - Lab 1
    |   |   |   | 

Unit schedule:

Part I: Getting started on the Apple Macs.

Go through the following tutorials if you haven't used MacOSX before, or if you haven't programmed on the Macs before using Xcode.

  • Note:
    • To create a simple Java project in Xcode, use "Java tool".
    • To see the output of a program in Xcode, use Run Menu -> Console.
(Both of these are originally for CITS2200 DSA.)

Xcode is a reasonable editor and programmer environment and isrecommended for the programming in this unit. vim (from the terminal)and Emacs (the "M" in the dock at the bottom of the desktop) arealternatives that you may also want to try, particularly if you'veused them past.

Part II: Adding objects to a simple simulation

  • Start with the imperative implementation of a simulation of a bike rental business that allows customers to return their bikes at any of 5 locations.
  • This implementation is at
  • Alter this program so that it is object-oriented, while still performing the same task.
    Hints:
    • Make a class for locations and a class for customers.
    • Replace the arrays for numBikesAtLoc, customerLoc and customerDest by instance variables in these classes, and then have two arrays, one for locations and one for customers.

CRICOS Provider Code: 00126G