Tuesday, February 24, 2009

Review Ch. 4

Questions
1. B. sales > 500D OrElse <800D
2. C. firstNameTextBox.Text.ToUpper( ) = “BOB”
3. B False
4. A true
5. B false
6. C Paul
7. B Jerry
8. C Paul
9. D. sue
10. A. only the true path
11. B Case 3, 5
12. C Paul
13. C Paul
14. B Jerry
15. A Advance.NewLine
16. D String.IsNullOrEmpety(cityname)
17. C MessageBox.OK
18. B randomGenerator.Next(10,55)
19. C addressLabel.Text = city & “,” & state
20. B Case 1, 2, 3, 4, And 5

Wednesday, February 18, 2009

Using Comparison Operators – Swapping Numeric Values
· Dim temp As Integer declares a variable named temp
· Variables declared within a statemant block have Block Scope.
· Temp= number1, assigns the value in the number1 variable to the temp variable.
· The Concatenation Operator (&) is used to connect or link strings together.
· ControlChars.NewLineconstant advances the insertion point to the next line in the messageLabel.
Using Compaison Operators – Ex 2
· operationTextBox.Text statement assigns the contents of the operationTextBox’s text property to the operation variable.
· ToUpper method used to convert to uppercase.
· ToLower method is used to convert to lowercase.
· If CharacterCasing property is left at its derfault value, then normal coding will not work.

Tuesday, February 17, 2009

Vocab

1. Data type – determines the type of data the variable can store. True false
2. Floating Point – a number that is expressed as a multiple of 10. 3.2X10^6
3. Unicode – universal coding scheme assigns number 23556678789
4. Boolean Variables – memory locations where programmers can temporarily store data while an application is running. 2 bytes
5. Identifier – the name of an object.salesBox
6. DIM –dimension Dim itemPrice As Decimal
7. String – a group of characters enclosed in quotation marks. “HI!!!”
8. Literal Constant – item of data whose value does not change while the application is running.
9. Literal Type character – forces a literal constant to assume a data type other than the one its form indicates.
10. Method – specific portion of the class instructions, and its purpose to perform a task for the class.
11. TryParse Method – can be used to convert a string to a numeric data type.
12. Line Continuation Character – breaks up long instructions into two or more physical lines in the code editor window.
13. Imports System.Globalization – imports the sysstem.globalization namespace, which contains the definitions for numberstyles and numberformatinfo.currentinfo values. Size=35
14. Convert Class – contains methods that you can use to convert a numeric value to a specified data type. Const TaxtRate As Decimal = 0.06D
15. Precedence numbers – indicate the order in which the computer performs the operation in an expression.
16. Operators – perform mathematical operations /-*+
17. Scope – indicates where in the applications code the variable can be used.
18. Lifetime – indicates how long the variable remains in the computer’s internal memory.
19. Procedure scope- when a procedure can use a variable.
20. Comments – used to internally document the procedure.
21. Module Scope – refers to the scope of a module-level variable, which can be used by all of the procedures in the current form.
22. Block Scope – declares a procedure can use a block-level variable. If, Then
23. Static Variable: a procedure level variable that retains its value when the procedure ends, cost remains the same throughout.
24. Option Explicit: Disables implicit declaration of variables.
25. Empty String: A set of quotation marks with nothing between them.
26. Option Strict: strings will not be implicitly converted to numbers, and vice versa, narrower data types will be promoted to wider data types, wider data types will not be demoted to narrower.
27. Pseudocode: Uses phrases to describe the steps a procedure needs to take to accomplish its goal, Set cost to 4 and then multiple it by 2.
28. Empty String: A set of quotation marks with nothing between them.
29. Focus Method: Used to move the focus to a control while an application is running, sending the focus to the name text box.
30. Format Specifier: Determines the special characters that will appear in a formatted number, float to int removes the decimals.

1. You use a descriptive title and make sure that the name doesn’t conflict with other commands.
Ex: yellowBoards
2. You would use the DIM command.
Ex: Dim yellowBoards As Integer
3. Dim variables can be changed and const stays the same.
4. You would use a variable:
totalSkateboards = blueBoards + yellowBoards
5. You would use the clear function.
Ex: yellowTextBox.Clear()
6. Use the Convert.ToString function.
Ex: yellowBoardsLabel.Text = Convert.ToString(Yellow Skateboards)

Thursday, February 5, 2009

Vocab

1. Data type – determines the type of data the variable can store.
2. Floating Point – a number that is expressed as a multiple of 10.
3. Unicode – universal
4. Boolean Variables – memory locations where programmers can temporarily store data while an application is running.
5. Identifier – the name of an object.
6. DIM –dimension
7. String – a group of characters enclosed in quotation marks.
8. Literal Constant – item of data whose value does not change while the application is running.
9. Literal Type character – forces a literal constant to assume a data type other than the one its form indicates.
10. Method – specific portion of the class instructions, and its purpose to perform a task for the class.
11. TryParse Method – can be used to convert a string to a numeric data type.
12. Line Continuation Character – breaks up long instructions into two or more physical lines in the code editor window.
13. Imports System.Globalization – imports the sysstem.globalization namespace, which contains the definitions for numberstyles and numberformatinfo.currentinfo values.
14. Convert Class – contains methods that you can use to convert a numeric value to a specified data type.
15. Precedence numbers – indicate the order in which the computer performs the operation in an expression.
16. Operators – perform mathematical operations
17. Scope – indicates where in the applications code the variable can be used.
18. Lifetime – indicates how long the variable remains in the computer’s internal memory.
19. Procedure scope- when a procedure can use a variable.
20. Comments – used to internally document the procedure.
21. Module Scope – refers to the scope of a module-level variable, which can be used by all of the procedures in the current form.
22. Block Scope – declares a procedure can use a block-level variable.
23. Static Variable: a procedure level variable that retains its value when the procedure ends, cost remains the same throughout.
24. Option Explicit: Disables implicit declaration of variables.
25. Empty String: A set of quotation marks with nothing between them.
26. Option Strict: strings will not be implicitly converted to numbers, and vice versa, narrower data types will be promoted to wider data types, wider data types will not be demoted to narrower.
27. Pseudocode: Uses phrases to describe the steps a procedure needs to take to accomplish its goal, Set cost to 4 and then multiple it by 2.
28. Empty String: A set of quotation marks with nothing between them.
29. Focus Method: Used to move the focus to a control while an application is running, sending the focus to the name text box.
30. Format Specifier: Determines the special characters that will appear in a formatted number, float to int removes the decimals.

1. You use a descriptive title and make sure that the name doesn’t conflict with other commands.
Ex: yellowBoards
2. You would use the DIM command.
Ex: Dim yellowBoards As Integer
3. Dim variables can be changed and const stays the same.
4. You would use a variable:
totalSkateboards = blueBoards + yellowBoards
5. You would use the clear function.
Ex: yellowTextBox.Clear()
6. Use the Convert.ToString function.
Ex: yellowBoardsLabel.Text = Convert.ToString(Yellow Skateboards)
1. Data type – determines the type of data the variable can store.
2. Floating Point – a number that is expressed as a multiple of 10.
3. Unicode – universal
4. Boolean Variables – memory locations where programmers can temporarily store data while an application is running.
5. Identifier – the name of an object.
6. DIM –dimension
7. String – a group of characters enclosed in quotation marks.
8. Literal Constant – item of data whose value does not change while the application is running.
9. Literal Type character – forces a literal constant to assume a data type other than the one its form indicates.
10. Method – specific portion of the class instructions, and its purpose to perform a task for the class.
11. TryParse Method – can be used to convert a string to a numeric data type.
12. Line Continuation Character – breaks up long instructions into two or more physical lines in the code editor window.
13. Imports System.Globalization – imports the sysstem.globalization namespace, which contains the definitions for numberstyles and numberformatinfo.currentinfo values.
14. Convert Class – contains methods that you can use to convert a numeric value to a specified data type.
15. Precedence numbers – indicate the order in which the computer performs the operation in an expression.
16. Operators – perform mathematical operations
17. Scope – indicates where in the applications code the variable can be used.
18. Lifetime – indicates how long the variable remains in the computer’s internal memory.
19. Procedure scope- when a procedure can use a variable.
20. Comments – used to internally document the procedure.
21. Module Scope – refers to the scope of a module-level variable, which can be used by all of the procedures in the current form.
22. Block Scope – declares a procedure can use a block-level variable.
23. Static Variable: a procedure level variable that retains its value when the procedure ends, cost remains the same throughout.
24. Option Explicit: Disables implicit declaration of variables.
25. Empty String: A set of quotation marks with nothing between them.
26. Option Strict: strings will not be implicitly converted to numbers, and vice versa, narrower data types will be promoted to wider data types, wider data types will not be demoted to narrower.
27. Pseudocode: Uses phrases to describe the steps a procedure needs to take to accomplish its goal, Set cost to 4 and then multiple it by 2.
28. Empty String: A set of quotation marks with nothing between them.
29. Focus Method: Used to move the focus to a control while an application is running, sending the focus to the name text box.
30. Format Specifier: Determines the special characters that will appear in a formatted number, float to int removes the decimals.

1. You use a descriptive title and make sure that the name doesn’t conflict with other commands.
Ex: yellowBoards
2. You would use the DIM command.
Ex: Dim yellowBoards As Integer
3. Dim variables can be changed and const stays the same.
4. You would use a variable:
totalSkateboards = blueBoards + yellowBoards
5. You would use the clear function.
Ex: yellowTextBox.Clear()
6. Use the Convert.ToString function.
Ex: yellowBoardsLabel.Text = Convert.ToString(Yellow Skateboards)
1. Data type – determines the type of data the variable can store.
2. Floating Point – a number that is expressed as a multiple of 10.
3. Unicode – universal
4. Boolean Variables – memory locations where programmers can temporarily store data while an application is running.
5. Identifier – the name of an object.
6. DIM –dimension
7. String – a group of characters enclosed in quotation marks.
8. Literal Constant – item of data whose value does not change while the application is running.
9. Literal Type character – forces a literal constant to assume a data type other than the one its form indicates.
10. Method – specific portion of the class instructions, and its purpose to perform a task for the class.
11. TryParse Method – can be used to convert a string to a numeric data type.
12. Line Continuation Character – breaks up long instructions into two or more physical lines in the code editor window.
13. Imports System.Globalization – imports the sysstem.globalization namespace, which contains the definitions for numberstyles and numberformatinfo.currentinfo values.
14. Convert Class – contains methods that you can use to convert a numeric value to a specified data type.
15. Precedence numbers – indicate the order in which the computer performs the operation in an expression.
16. Operators – perform mathematical operations
17. Scope – indicates where in the applications code the variable can be used.
18. Lifetime – indicates how long the variable remains in the computer’s internal memory.
19. Procedure scope- when a procedure can use a variable.
20. Comments – used to internally document the procedure.
21. Module Scope – refers to the scope of a module-level variable, which can be used by all of the procedures in the current form.
22. Block Scope – declares a procedure can use a block-level variable.
23. Static Variable: a procedure level variable that retains its value when the procedure ends, cost remains the same throughout.
24. Option Explicit: Disables implicit declaration of variables.
25. Empty String: A set of quotation marks with nothing between them.
26. Option Strict: strings will not be implicitly converted to numbers, and vice versa, narrower data types will be promoted to wider data types, wider data types will not be demoted to narrower.
27. Pseudocode: Uses phrases to describe the steps a procedure needs to take to accomplish its goal, Set cost to 4 and then multiple it by 2.
28. Empty String: A set of quotation marks with nothing between them.
29. Focus Method: Used to move the focus to a control while an application is running, sending the focus to the name text box.
30. Format Specifier: Determines the special characters that will appear in a formatted number, float to int removes the decimals.

1. You use a descriptive title and make sure that the name doesn’t conflict with other commands.
Ex: yellowBoards
2. You would use the DIM command.
Ex: Dim yellowBoards As Integer
3. Dim variables can be changed and const stays the same.
4. You would use a variable:
totalSkateboards = blueBoards + yellowBoards
5. You would use the clear function.
Ex: yellowTextBox.Clear()
6. Use the Convert.ToString function.
Ex: yellowBoardsLabel.Text = Convert.ToString(Yellow Skateboards)
1. Data type – determines the type of data the variable can store.
2. Floating Point – a number that is expressed as a multiple of 10.
3. Unicode – universal
4. Boolean Variables – memory locations where programmers can temporarily store data while an application is running.
5. Identifier – the name of an object.
6. DIM –dimension
7. String – a group of characters enclosed in quotation marks.
8. Literal Constant – item of data whose value does not change while the application is running.
9. Literal Type character – forces a literal constant to assume a data type other than the one its form indicates.
10. Method – specific portion of the class instructions, and its purpose to perform a task for the class.
11. TryParse Method – can be used to convert a string to a numeric data type.
12. Line Continuation Character – breaks up long instructions into two or more physical lines in the code editor window.
13. Imports System.Globalization – imports the sysstem.globalization namespace, which contains the definitions for numberstyles and numberformatinfo.currentinfo values.
14. Convert Class – contains methods that you can use to convert a numeric value to a specified data type.
15. Precedence numbers – indicate the order in which the computer performs the operation in an expression.
16. Operators – perform mathematical operations
17. Scope – indicates where in the applications code the variable can be used.
18. Lifetime – indicates how long the variable remains in the computer’s internal memory.
19. Procedure scope- when a procedure can use a variable.
20. Comments – used to internally document the procedure.
21. Module Scope – refers to the scope of a module-level variable, which can be used by all of the procedures in the current form.
22. Block Scope – declares a procedure can use a block-level variable.
23. Static Variable: a procedure level variable that retains its value when the procedure ends, cost remains the same throughout.
24. Option Explicit: Disables implicit declaration of variables.
25. Empty String: A set of quotation marks with nothing between them.
26. Option Strict: strings will not be implicitly converted to numbers, and vice versa, narrower data types will be promoted to wider data types, wider data types will not be demoted to narrower.
27. Pseudocode: Uses phrases to describe the steps a procedure needs to take to accomplish its goal, Set cost to 4 and then multiple it by 2.
28. Empty String: A set of quotation marks with nothing between them.
29. Focus Method: Used to move the focus to a control while an application is running, sending the focus to the name text box.
30. Format Specifier: Determines the special characters that will appear in a formatted number, float to int removes the decimals.

1. You use a descriptive title and make sure that the name doesn’t conflict with other commands.
Ex: yellowBoards
2. You would use the DIM command.
Ex: Dim yellowBoards As Integer
3. Dim variables can be changed and const stays the same.
4. You would use a variable:
totalSkateboards = blueBoards + yellowBoards
5. You would use the clear function.
Ex: yellowTextBox.Clear()
6. Use the Convert.ToString function.
Ex: yellowBoardsLabel.Text = Convert.ToString(Yellow Skateboards)