1130tutorial2

1130tutorial2 - ComputerProgramming TutorialNotes2 Assignment2 ReleaseDate:10September2007 DueDate:12:00nn,24September2007 AimofAssignment2 =

Info iconThis preview shows pages 1–12. Sign up to view the full content.

View Full Document Right Arrow Icon
    CSC1130 Introduction to  Computer Programming Tutorial Notes 2
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
    Assignment 2 Assignment 2 is released! Release Date: 10 September 2007 Due Date: 12:00nn, 24 September 2007
Background image of page 2
    Aim of Assignment 2 Get familiar with the use of classes We have prepared classes for you to play with  =)
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
    Descriptions of Assignment 2 Task in this assignment Lights Out
Background image of page 4
    Lights Out Target Turn all bulbs on Board OFF. Within least steps Board Bulb
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
    Bulbs Bulb states On                or Off                 or
Background image of page 6
    Lights Out What to do Three Main classes with three difficulty levels and  different board sizes Initiate the bulb/light status according to spec Toggle on proper point on board LightsOutMainA.java
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
    Lights Out What to do (cont.) LightsOutMainB.java LightsOutMainC.java
Background image of page 8
    Lights Out Toggle rule Any bulb can be toggled (switched) But its  FOUR  (NOT eight) neighboring bulbs will be  switched automatically Other bulbs are not affected
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
    Lights Out Toggle rule (cont.) Toggle(2,2)
Background image of page 10
    Lights Out Boundary situation Toggle(0,0)
Background image of page 11

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 12
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 12/28/2010 for the course CSC CSC1110 taught by Professor Cjyuan during the Fall '06 term at CUHK.

Page1 / 27

1130tutorial2 - ComputerProgramming TutorialNotes2 Assignment2 ReleaseDate:10September2007 DueDate:12:00nn,24September2007 AimofAssignment2 =

This preview shows document pages 1 - 12. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online