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 25, 2007
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment