Wednesday, April 30, 2008

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.

No comments: