During this week we continued to work on our Visual Basic program writing. We learned how to apply the Select Case statement while writing the codes. This statement is used to run a code based on multiple conditions; it allows you to use as many conditions (or cases) as you wish. By doing so, this makes it convenient to write codes for situations in which there are a variety in the choices. An example of this would be a program written to calculate what candidate won in an election for parliment. By calculating the votes for as candidates as you wish, the program will output who came first, second, third and so on.
We also recieved sheets on debugging a program and compiler/run time errors. By understanding how to debug, it will make you a better programmer for the future. Tomorrow, the majority of the class is handing in an assignment that is able to focus on the Select Case functions. Also, a quiz on Visual Basic and some flow charts is scheduled for tomorrow.
Wednesday, March 7, 2007
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment