Friday, May 25, 2007

Array Project

This week we continued to work on our Array project. Last week I had trouble making it towards the end but i managed to finish it on thursday. I discovered that the thing i had wrong was the beginning of the For statements were wrong. What i had was: For i=0 to numday. The problem was this was that it didn't stop when ticket(i)= -1. What i did instead whas this: For i=0 to 364, then made an if statement: if ticket(i)=0 then exit for. Once i did that almost all of my buttons worked except for the t200 button that ouputs the amount of days it took to sell 200 tickets. But all i had to do was change the order of the code and put the if statement regarding the -1 before the rest of the code. We also learned more about ergonomics and sitting the right way at a computer as well as an introduction to putting animations in programs.

This week i figured out alot of things without help that made me complete my project and i am proud of myself. I hope i can continue to do lots of good work. My goal for next week is to continue to be productive and figure out things by myself.

Friday, May 18, 2007

Array Project and Ergonomics

This week in computer science we started learning theory on ergonomics and started an array project. We learned about carpol tunnel and methods to prevent it, such as taking a break every half an hour when sitting at a computer or not always resting your wrists on the table behind the keyboard. We also learned about how back and neck problems can develop if you sit at a computer in the improper way. You have to make sure that you have enough leg room, you are sitting with good posture, and you are sitting in a comfortable chair. For the array project we have to create a program where the user inputs the number of tickets he sold each day, and the program must put the information into the array. The user should have acess to a few operations such as the amount of days 0 tickets were sold and the number of days it took for 200 tickets to be sold. I discovered after the teacher told me that to make it so you can only input 1 number at once you must use a while loop that keeps going until the next spot in the array equals -1, which is set as the values for all the numbers in the array in the form load. This makes the user only able to put in one number each time they press the button because, after they put in one number and replace the value of -1 in the form load, the window will automatically close because the while loop takes effect.

I am finding the array project quite challenging. I can't get all of the buttons to work and, i seem to have typed in all of the right code. I have to make sure that I know when to use for and while and think through the result of my code before i type it. My goal for next week is to complete my array project and figure out how to make it work.

Friday, May 4, 2007

Sin numbers and mark averages

This week we continued to concentrate on loops and how they work. On Monday, we started a program where the user inputs a sin number and the program performs a certain calculation that indicates if the sin number is valid or not. On Tuesday, we continued to work on our sin assignments and our computer science teacher started marking on a voluntary basis. On Wednesday we did an assignment that was for fun and for our own interest and not for marks. It was very hard and complicated and required lots of new variable types that I have never used before. On Thursday the teacher was absent and we did an assignment on computer history, and important definitions and terms. Today we did a while loop program, where the user inputs numbers into an input box and types -1 when they want to stop. The program outputs the average the highest mark and the lowest mark.

Throughout the week i still had to get help ocasionally from people and i continue to try and figure out things on my own. My goal is to continue to try until i can do all my programs without any assitance. Today working on the Average mark assignment i had everything right except for about 4 lines so i'm gettin close.