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.

No comments: