Wednesday, April 30, 2008

The Summmmm Program

Well the second part of the assignment was much easier than the first. We honestly completed the whole program in under 10 minutes. As we had been searching for some clues on how scroll bars worked we opened up a folder which had an interesting code that we applied to our program. It will probably not get us any extra marks but it sure looks creative.

This little secret of ours is that we found the coding for changing the colour of the form as the scroll bar moves up and down. This does not make the simple sum program and more complicated but it sure makes it look more professional and creative.

Today we were also told that we had to add comments in the programming sections of both of the programs we had created. Emily had no problem adding comments to the height program but I wasn't sure of how to explain what we had done through the coding. After some careful thoughts I soon managed to put comments on the page and we submitted both parts of the assignment to Mr. Chiarelli and had time to do whatever we choosed.

Sometime next week we will be introduced to another group assignment but this one will have not just two people in the group but three. I believe that I will be in a group with Emily and Alex as we had established this as soon as we had heard that there would be a group assignment.

Well tomorrow I am going to tell you some very shocking news. . .so make sure that you stay tuned to find out!

Average Height of a ABC year old?

Okay, we were still encountering problems with our first program as none of the formulas we have been putting in have worked. Both of us had searched through our notebooks trying to find an clue or even the answer. But nothing showed up until we realized that our formula was place in the wrong place of the code. Another thing was that we had to copy and paste the code for calculating the average height into each of the age categories. Now we were on to something and it was working. We compared our work with another groups and together we solved another one of the problems.

A different problem that we had been having is that the "critical error" message box was popping up after both the age and the height were inputted. For example if you plugged in an invalid entry for the age it would not tell you it was an invalid entry until after you entered the height. It had worked before but then when we altered some of the programming it messed up. Now just as we had thought that we were done another problem just had to come up. Thank-fully we resolved our problem near the end of the period which gave us a couple minutes to start on the bonus question.

The bonus question in this assignment is titled 'The Sum Program" Basically what it does is that whatever number you select using a scroll bar is inputted into a label box. Then, for example if you selected the number 4 then when you clicked on the sum button it would add all the consecutive numbers starting from one and ending at 4. (1+2+3+4=10) The sum of these numbers would be inserted into a text box and Voila! Your done.

More info on the sum program tomorrow. . . and some very sad news.

Monday, April 28, 2008

Intro to Group Assignment

Well finally the moment you have all been waiting for. . . the group assignment! The day that we had to write down the name of our partners Emily was not there but I wrote her name down as my partner. Gladly she did not revoked this offer (why would she :) ?) . The next day she was back and we were given the sheets outlining what we have to do.

There are two parts to the assignment: the first part is a program that determines the average height for the age categories between 13-18. Today the only thing that we did with this part was figuring out what we have to assign as a variable. Then with a similar program in hand we began to piece together the different formulas that we had to insert. At first this program did not seem hard but now we are realizing that we are missing one thing and we are searching are brains trying to find the answer. This is missing puzzle piece is the formula to how to add up all the various heights. At the moment the only thing it is doing it just displaying zero as the average height for all of the age categories.

That's all for now folks. . . more info will be posted tomorrow. . . I promise!

Wednesday, April 23, 2008

Selective Problems

"Selective Problems" is the ingenious name that Emily and I decided to call the new concept we had been learning these past days. Through these problems we had to use 'loops', 'do loops' and 'for next' concepts. Many of the questions are not hard but you have to make sure that you understand them completely or else you will create the wrong program.

We have been taught how sometimes you can crash the computer because it continuously loops a formula such as printing consecutive numbers or sentences and you never tell it to stop. Mr. Chiarelli showed us how to stop these crashed programs. I have learned how to make sure that my program does not crash by setting a limit and telling the computer when to stop.

For the next couple of days we are supposed to be just doing various problems and learning a couple of new concepts. From looking at my day planner I believe that we are going to be introduced to our first group project on Visual Basics. I also believe that this is the first group project period we have done in this class. Emily and I will obviously be together because as two of the three girls in this class we have to stay together.

Well it is getting late and I should be going now. Stay tuned for more news about my adventures with Visual Basics and about the upcoming group project!

Thursday, April 17, 2008

Problems. . . What Problems?

Yesterday we worked on the back of a previous worksheet about mathematical formulas in computer programming. We had a short review of how to enter a mathematical formula such as 4-3 into a computer program properly. We were also taught how to use message boxes and input boxes. After a few examples we were put out on our own to try the next five problems that would be checked for homework the following day.

I realized that when we were doing Flash and being taught a new concept we didn't have to be paying attention to the teacher as sooner or later we would understand it. In VB it is much different because if you missed just one thing because you were talking you miss a lot more than you thought you would. Thankfully I have mastered the skill of being able to look at my own screen whild watching the teacher demonstrate the same thing I am trying out on my computer.

Because I have been paying attention in class I was able to finish the five problems within a matter of minutes with Emily. These problems were not very difficult but they just required a lot of concentration and applying of the things we had been taught. Most of these examples were also repetative in what way you would program them but the only difference what the information it displayed. Such as one was calcuated the commision percentage of a store employee whild the other calcualted the taxes, gross pay and total pay of an employee. In a nutshell both Emily and I believed that these problems were no problems at all.

But I still hope to get more like these as we learn new things because through these problems we can apply the things we had been taught to real life situations. This is probably what I like most about VB that you are able to apply many of the things taught to real life problems.

Read more soon. . .!

Tuesday, April 15, 2008

Braves Pizza

On Friday after the lesson and some review our teacher gave us a hint about the upcoming quiz/test. He had showed us one of the assignments that we must be able to recreate using the new concepts learned that day. While other classmates rushed to game sites Emily and I decided to tackle this clue in hopes that it would help us on the test.

In this assignment a person would be able to enter their name, choose size, type and quantity of pizza and then the computer would calculate the taxes and the total price.

One of the longest things about this pizza project was drawing and naming all of the labels, commands and text boxes. After that we only ran into a few problems such as we couldn't find out how to make the prices of certain things come up in the labels. But gladly after hammering at it for most of the period we both got it.

Walking into class the following Mondy we both were glad that we had attempted that assignment as it was the same question on the test. Before when it had taken me most of the period it only took me half. I was very happy that I had decided to take my teacher's advice and attempt that problem because today we received our marks for that test. I had only lost one mark on multiple choice but I had gotten 100% on the Braves Pizza part.

Remember. . . when your teacher says something might be on the test, chances are it probably would be or there will be a very similar question.

Thursday, April 10, 2008

One More Thing and I'm . . .Done!

Thursday was the final period that we were given to work on our family assignments and I had finally remembered to bring in the pictures. Everything when smoothly. . .nothing froze up nor did the picture corrupt. I was so surprised at this that just to be sure that the computer wasn't playing tricks on me I kept saving every couple of minutes.

I had decided to add a text box underneath the photobox in which text was displayed to describe the picture. I had planned to use tool tip text ( when the cursor is placed over an image/object a small box appears describing the object) but the problem was that all of the pictures had been placed on top of each other and so only the first photo displayed its text.

At the end of class we had to show our assignment to our teacher so that he could see if it worked and he gave us a mark for the first part. Then second part of the assignment was the content and this he marked today. I was very proud of my mark as I had put in alot of work and effort but as well as fun. My mark on this assignment was: 100% I am very happy and pleased about this mark.

Stay tuned. . .

Monday, April 7, 2008

Finishing Family Assignment

Today we were given time to work on our family assignments. Our teacher had managed to call the board and fix the slow computer problem. . . and even though Youtube and other websites are blocked I am glad because now I don't have to worry about my program freezing or not saving.

For the third time in a row I had forgotten to bring some pictures for the assignment from home so today I just focussed on making sure that all of the controls were working properly. I also filled in what text I what to come up when a certain command button or in my case image is clicked.

At the moment I like this program (Visual Basic) better than Flash because it is not as repetative, more programming is involved and I can see where this program might be used in my everyday life. In Flash I always had to apply the same command to many items but in VB each may or may not have the same command but most of the time there is no need to rewrite the command I just have to copy and paste it. VB also has more thinking invovled because you need to remember what each item was called and the type of action that you want it to be associated with.

That's all for now folks! Stay tuned for more. . .

Thursday, April 3, 2008

More Autobiography. . .

Yesterday we were taught how to make two forms. We were also taught how to create a textbox on both forms and when we typed something into the first forms and then clicked the command button to get to the second form it would still be there. This was called 'magic'. We were told that we are not allowed to use two forms on our autobiography assignment. At first I was bummed because I had really wanted to apply this concept to my assignment but if you read on you will know now why I am happy that we are sticking to a simple assignment.

Today I took the pictures that I had found before and added them onto my form but when I tried to save the computer kept on freezing up. The teacher wasn't there so I didn't have anyone to ask. So what I had to do was after each command button I made or image I inserted I had to save. At one point the program shut down and when I opened it back up all of my command buttons were gone and my images were distorted. This is why I am happy that we are sticking to a simple assignment because if we weren't I would have to redo alot more. I will have to find out what to do about this problem tomorrow.

Hopefully my Visual Basic problem will be solved tomorrow because I would really like to keep creating and adding new controls without having to constantly worry and then wait to see if it will save properly.

Stay tuned!

Tuesday, April 1, 2008

Autobiography

Yes, I finally was introduce to the autobiography assignment. This assignment will be different from the Flash family assignment because first of all it's on a different program and secondly this one is going to be all about me and not my family.

After some quick reviews of some newer and some forgotten concepts we were given the rest of the class to start an assignment. We had learned how to put a background on the form and so that was the first thing that I went searching for. The one I decided upon was a windows media player background because I love music and so I'm going to base some other objects on the form on that aspect of myself.

The thing with backgrounds is that you have to convert it to a wmf. file and what this does is puts it into a type of picture file that Visual Basics can read. The disadvantages of this is that it distorts the image and it isn't in its highest quality. I though that this was only because the file was so big but then I realized that it happens to all of the pictures.

That day we I went home I found pictures of the new Ipod touch and Iphone and decided that one of these images will display the information about me and the other will display the pictures. I also found some more recent pictures of myself that I could use in this assignment.

I am really excited about seeing how this program will look when it is finished. I know that to some people this must seem like baby work but I am really enjoying it. I really would like to learn more about it so that I could be able to produce more sophisticated looking programs with more controls.

That's all for now folks!