This week began with a lesson on the data types that can be applied while working the Visual Basic application. An important characteristic of a variable is its type. The certain data type which is applied to the variable determines what kind of information a variable is able to hold.
A common example of a data type is the Single data type. By using Single, the person writing the program is able to input positive or negative numbers up to around 3.4 times 10 to the power of 38. The data type String is usually applied when you wish to have your program output text.
Dim num1, num2, num3 As Single
Dim negative, neutral, positive As String
Above shows that the user declared the first, second, and third number as a Single. Where as the words negative, neutral, and positive were declared as a String. We were also given a Visual Basic project that asks us to create a Temperature Converter which refers to Fahrenheit and Celsius. On Wednesday, we were given a web awareness assignment to finish in order to prepare for the OSSLT literacy test. On Thursday, I was absent for the entire day because I was job shadowing for my career studies class. The class were handed out a sheet about identifying Strings. Friday we continued writing programs as well as our weekly status report.
Wednesday, March 21, 2007
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment