Friday, April 20, 2007

Weekly Status Report #7

This week the work I accomplished still involves loops, in particular exit for, which allows the user of a program to end that program early if the enter a particular string, which will exit a loop and then continue with the rest of the program after the loop has ended. We wrote 2 programs which used exit for, one simply for calculating the average of 10 marks, which could be ended early by typing "-1" and one program which randomized a number and gave you 8 tries to guess it, and it would exit for if you guessed it correctly, otherwise you continue until you guess expired. We also did a report on different possible jobs that one could get if they pursued this type of work for their future.

The work I have remaining is still the unfinished loops programs from 2 weeks ago, because this week the student hard drives couldn't load saved programs from Visual Basic, thus I was unable to access and finish them. My goals for next week thus still include finishing those 2 programs and doing some work on my new loop programs to try and ad extra features to it to expand my knowledge of exit for statements.

I didn't encounter many problems this week, in fact the only real problem I encountered shouldn't have been a problem in the first place. When we started working on our second exit for program I didn't know how to generate random numbers. So I used the help feature and Google to try and figure out how to do so, when in fact the code for it was written on the problem sheet. So I was told that this was the case and my problem was solved.

Friday, April 13, 2007

Weekly Status Report #6

This week, the work I accomplished was writing many loop programs which taught us how to program loops, how to track the variables as the loop progressed and how to understand the function of loops as they work. I wrote 7 programs that involved loops to solve simple problems such as adding all the numbers from 1 to 10 and outputting the sum, to displaying the factorial value of all numbers up to a given number, and determining whether a number was prime or not. The next set of work we did was learning how to track variables through some debug functions. I had already learned how to use the functions to debug, and learning that they had an alternate use was helpful.

I have a few programs to finish up next week, the factorial and prime numbers ones are the programs that stumped me. Other than those 2 programs, I finished all of this weeks work. My goals for next week are to finish those 2 programs and then learn another type of loo[p function as described on the outline sheet. I also want to try and learn some more loop functions independent of the outline classes for loops.

The problems I encountered this week were few, mainly surrounding the two programs that I didn't finish. I am having trouble coming up with the code to find the factorial of a number as well as finding the code by using loops to determine wether or not a number is prime. These are problems I will have to solve next week as determined by my goals remaining.