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