This week in class we created more programs. One new thing that we did this week was using the cases. By using the cases it is easier to compare lots of information instead of using lots of if and else statements. Another thing that we learned during this week was debugging. There are three types of bugs. They are logic (the programmer has made an error in what they want the program to do), runtime (the user has input an incorrect symbol), and compiler (there is a mistake in the code). This week we also had our second test. It wasn't very hard, and I hope that I did well on it.
I didn't have many problems this week. A minor problem that I had was that I didn't really understand how to use cases. I find that if and else statements are much easier to use than cases. The main problem that I had was changing the name of the pop-up box in TIKVB11 which was the program that we handed in. At first, it would jsut say the title of the program and that seemed really plain so I wanted to change it. I solved this problem by searching through the internet. I came across as site that explained what to do but I didn't realize that I had to change the name in the bracket that outputs the results so when I put the code one line under the main message box's code, another box would pop-up after you click ok. Then I realized that the title had to be with the original code so I put it there and it worked.
In the future I hope to learn how to use cases better because i still don't really understand them. I also hope that we create programs that will use more than one group of radio buttons or check boxes which means that the programs will be more difficult. I like challenges so that is why I would like to create more complex programs.
No comments:
Post a Comment