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 25, 2007
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.
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.
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.
Saturday, April 28, 2007
More for and next loops and introduction to While
This week in computer science we started to learn more complex loops using For and Next. I wasn't at school on mondy but apparently we learned how to use Timers in our programs. We learned how to set the interval of the timer (miliseconds) so a certan action can happen at each interval. For example, we made a slide show that changes pictures every 5 seconds. For and Next are used for loops that need to be done a certain number of times, but we encountered a new issue that required us to use another form of loop called While. In this type of loop you make the loop run over and over again until a certain action is performed. What we did is make a program where the user inputs names then writes done to end the loop.
This week I was a bit behind because of my music trip but, I pretty much got caught up by the end of the week. I missed the whole thing on timers, and i'm a bit dissapointed, but i think i'm still on track. My goals for next week are to get better at using while, because i could really figure out how to use it on friday and i want to get better at solving problems when i encounter them.
This week I was a bit behind because of my music trip but, I pretty much got caught up by the end of the week. I missed the whole thing on timers, and i'm a bit dissapointed, but i think i'm still on track. My goals for next week are to get better at using while, because i could really figure out how to use it on friday and i want to get better at solving problems when i encounter them.
Friday, April 13, 2007
Introduction to Loops
This week in computer science we started to learn how to use loops. We used the funtion called For and Next to indicate a loop and we created many simple programs that use loops. One example was one where we had to create the numbers that adds all the numbers from 1 to 100. We also were given the code for loop programs and were asked to identify the Output of the program and describe how the program works.
This new criteria that we learned was very challenging. I had trouble understanding the concepts and often has to ask someone for help, especially when we were creating the programs. I hope that I understand it better next week, even though we are going to be doing more complex loops. Generally I'm not looking forward to next week becuase of how I had trouble this week.
This new criteria that we learned was very challenging. I had trouble understanding the concepts and often has to ask someone for help, especially when we were creating the programs. I hope that I understand it better next week, even though we are going to be doing more complex loops. Generally I'm not looking forward to next week becuase of how I had trouble this week.
Thursday, April 5, 2007
Pizza Palace
This week in computer science, we were assigned a project that was very complex and took alot of work. We were asked to make a program that could be used for a real pizza service called Pizza Palace. Side orders, drinks and toppings had to be included in the program as well as different sizes of pizzas. The user should also have the option of changing the prices of the pizzas, the toppings, the side orders and the drinks. Overall there was several pages of code that we had to produce and it took alot of work, but we completed it by thursday.
Throughout the week my partner and I worked very efficiently and effectively. We used our time wisley in class and constantly helped eachother type code, and make the interfaces. We were one of the first groups finished the assignment and I very proud of myself. I hope to endure more advanced programs this week and meet the requirements of those programs.
Throughout the week my partner and I worked very efficiently and effectively. We used our time wisley in class and constantly helped eachother type code, and make the interfaces. We were one of the first groups finished the assignment and I very proud of myself. I hope to endure more advanced programs this week and meet the requirements of those programs.
Friday, March 30, 2007
Payroll and dialog boxes
This week in computer science we only created one program. It was called payroll. At first the user could only input the number of hours worked and the number of coffee cups sold, but towards the end of the week we were asked to add more features such as a menu strip and a dialog box. We did this so the user could also input the tax rates, as well as the hourly rates. We learned how to use code to make the dialog box come up when the tab in the menu strip was clicked. We also learned how to make variables useable by other items other than the one it is typed in.
This program was definetly chalenging. It was mostly the dialog box stuff that was the main tricky part. My problem was that when i clicked ok after putting in the the hour or tax rates, the program crashed. I couldn't figure it out until the teacher showed me how to do it. I think i didn't well this weekand hope to continue with my progress.
This program was definetly chalenging. It was mostly the dialog box stuff that was the main tricky part. My problem was that when i clicked ok after putting in the the hour or tax rates, the program crashed. I couldn't figure it out until the teacher showed me how to do it. I think i didn't well this weekand hope to continue with my progress.
Subscribe to:
Comments (Atom)