Date: Wed, 24 Mar 2004 10:19:16 -0600 (CST) From: Mark Jacobson To: 810-151-05@uni.edu Subject: [810-151-05] Exam on Friday... VB .Net students, The final exam is on Friday at 9 a.m. As stated at the end of class today, it will focus on the following topics and skills: 1. Write a Function to do .... Example: Write a function to generate random integers in the range from the lowest to the highest integer the user desires: xCoordinate = RandomInt(-20, 20) yCoordinate = RandomInt(-20, 20) birthday = RandomInt(1, 365) diceToss = RandomInt(1, 6) whichCat = RandomInt(1, 4) Solution (sample answer). Function RandomInt(low As Integer, high as Integer) As Integer Dim range as Integer range = high - low + 1 RandomInt = Int(Rnd() * range) + low End Function 2. Random numbers have been used in many of the class assignments and example handouts. Know how to do random numbers. (See #1 above). 3. For Next loops. Know the syntax. You already know the semantics of For loops from Ada and from Java! For limit = 80 to 50 Step -10 For i = 1 to 10 For j = i to limit Step 4 Next j Next i Next limit Next by itself is enough, Next i, Next j, Next limit - - ----- 4. Graphics basics, but I will give you an example or else the syntax specs for whatever you need to do. You merely need to understand the various graphics we have worked with. 5. ImageLists basics, but I will give you the syntax needed, so you can write the code without having to have syntax memorized. 6. Checkboxes. You have seen these in several handouts and examples. Obviously, anything involving checkbox controls will require If statements and checked to see if it is a checked checkbox or not. 7. Command buttons. It goes without saying, however, you do not have to write the Event procedure header. I will give that to you, since the two arguments are difficult to memorize in 5 weeks. Write only the code that goes inside the command button. I will give you the procedure header! 8. Arrays and arrays of objects. Best examples to study for this are the handouts from this week: Dim racers(3) As Object Dim p(3) As Object 9. Know the Timer control and its Tick event and its Enabled and Interval properties. This helps you to better understand your last programming assignment too, which involves the animated, racing Neko cats. Mark