Compu 131 WrapUp Winter 2007 -------------------------------------------------------------------------- . Last Class day(s) -- present your game prototype class (Asgn. 6 DONE by start of class) Late work -- late fees after due date Nothing after 11 AM last class day before the exam Or special arrangement (grade of Incomplete) -------------------------------------------------------------------------- . Final exam you may bring a 3"x5" card of notes. Or any of my other exam days (see my schedule onteh web site (make prior arrangement) Ch. 6, 7, (8), binary<-->decimal Asgn. 4 (World: file processing, accumulate, count), 5 (Translate: arrays, searching), (6) Topics: Loops and selection, file processing, arrays (bubble sort, search, 2D, from files, vs. files) Format similar to Test 2. Same weight. But 2 hours. -------------------------------------------------------------------------- . Evaluation form: http://www.shoreline.edu/rshields (bottom of table) -------------------------------------------------------------------------- . Methods (Subs, Functions, Procedures) should fit on 1 screen (2 at most). Identify chunk of code that does 1 job & make a "method" out of it Sharing data? Parameter list -- as long as needed Function can only return 1 value Is method trying to do too much Or is a class (form)-level variable a good solution ? Or use a structure to hold all the values you want to return Back to section 7.3 (p. 339+) Define your OWN data type--not restricted to one data element type Structure ProvinceType 'this is the name of the "type" Dim name As String Dim population As Double Dim area As Double End Structure Dim province1 As ProvinceType Dim province2 As ProvinceType 'Individual members province1.name = "Quebec" province1.population = 5000000 province1.area = 300000 'Entire structure province2 = province1 'An array of structures Dim provinces(13) As ProvinceType provinces(1).name = "Ontario" CanadaStructure