Friday, May 25, 2007

May 25

This week the work we did continued on our knowledge of arrays and also expanded into animation. The work we did on arrays was to finish up our lottery array. The work I did on my project was to re program it so the functions weren't conducted when you input the number of lottery tickets, but instead it was conducted when you wanted information on that specific function. I ran into a small amount of problems doing that, but they were all resolved and I got a perfect mark. For animation we made programs that allowed you to move a picture left, right and up and down and well as shrink and enlarge the image.

I have no work left remaining for this week but I would like to do some work on my own and combine the two programs so that I could have a program that can move the pictures left, right, up and down as well as being able to shrink and enlarge them if they are clicked.

The problems that I encountered this week were centered around making the lottery array program run functions only when they were clicked and not when the number of tickets was input. I had difficulty with this because the program would include "-1" which all the array was initialized to in some of its calculations. I fixed this problem by making the program end the loop after all the "used" days have been taken into account for calculations.

Friday, May 11, 2007


This week the work I accomplished was centered around arrays. We used arrays to make programs easier to make variables for, by using an array to number variables in correspondance with our for...next loops. We made programs that functioned based on using 9 number created by our arrays and used functiosn to modify them. We also changed our SIN number programs so it worked using an array.

The work I have remaining for next week is the programs that takes 20 numbers from the user and orders them in ascending or descending order. This program will pose only some difficulty to determine the most effective way of arranging the number in order.

I only ecnountered minor problems this week with my programs, mainly involing clearing the Initial and Reult arrays to wipe clean when chaning the contents so it doen't stack after one another so you can't see your current Initial and current Reult arrays. I fixed this problem by making the fields reset when the button is clicked.

On a sadder note, all of us at Lorne Park mourn the passing of Manny Castillo.