Term
|
Definition
An expression involving relational operators (<, =) that is either true or false. |
|
|
Term
|
Definition
Decisions based on conditions:
If (condition) Then
action 1
Else
action 2 (or error message)
|
|
|
Term
|
Definition
Decision of One Variabl
Select Case Shapes
Case "Circle"
number = 1
Case "Square"
number = 2 |
|
|
Term
|
Definition
Select Case totalsales
Case Is <= 400
tax = 400 * .05
Case Is <= 500
tax = 500 * .05 + 2 |
|
|
Term
|
Definition
|
|
Term
Principal Logical Operators |
|
Definition
|
|
Term
|
Definition
Any variable or expression that evaluates to either true or false. |
|
|
Term
|
Definition
A part of a program that performs one of more related tasks, has its own name, and is written as a separate part of the program. |
|
|
Term
|
Definition
Call CalculateDensity("Hawaii, 1263244)
Sub CalculateDensity(ByVal state As String, ByVal pop As Double....)
End Sub |
|
|
Term
Modular or Top-Down Design |
|
Definition
Using sub procedures to break down big problems, and focus on the main program.
|
|
|
Term
|
Definition
ByVal:
when a variable is passed to a parameter so that it receives only a copy. |
|
|
Term
|
Definition
ByRef:
When a variable is passed by reference as in the parameter sends a location and only has a "thread" to the call statement it corresponds with. |
|
|
Term
|
Definition
User-defined functions
A general procedure that returns a single value. |
|
|
Term
|
Definition
Function CalcRectangle(ByVal length As Double, ByVal width As Double)
Return length * width
End Function
|
|
|
Term
|
Definition
In any procedure, the arguments in the calling statement must match the parameters in the procedure in number, type and order. They do not need to match in name. |
|
|
Term
|
Definition
.Substring returns a word or letters
"fanatic".Substring(0,3) is "fan"
|
|
|
Term
|
Definition
IndexOf returns a position number
"fanatic".IndexOf("ati") is 3 |
|
|
Term
|
Definition
Dim fmtZone As String = "{0,-10}{1,12}"
lstResults.Items.Add(String.Format(fmtZone, "College", "City", "Students")
lstResults.Items.Add(String.Format(fmtZone, "Mizzou", "Columbia", 15000) |
|
|