Using NET Microsoft Visual Basics ONLY Chapter 4 3 Based on

Using (.NET) Microsoft Visual Basics ONLY:

Chapter 4-

3. Based on the variable declarations below, determine the value, true or false, for each of the following Boolean expressions. (1 point each)

Dim quantity As Integer = 5

Dim color As String = \"Green\"

Boolean Expression

Boolean Result

quantity = 5 And color = \"Blue\"

quantity = 10 And color = \"Green\"

quantity = 10 Or color = \"Blue\"

quantity = 5 Or color = \"Blue\"

Not color = \"Blue\"

4.   Write an appropriate decision statement for each of the following. (3 points each)

Display \"Number must be no more than 100.\" in a message box if the value in the textbox name txtScore is greater than 100.

Display \"Cooked\" in a label named lblMessage when variable temp is between 140 and 160, inclusive.

5. Which is the appropriate word for the first blank below, odd or even? Which is the appropriate word for the second blank? (2 points)

If number Mod 2 <> 0 Then

MessageBox.Show (\"Your number is _____\")

Else

MessageBox.Show (\"Your number is _____\")

End If

Which is the appropriate word for the first blank above, odd or even? (1 point)

Which is the appropriate word for the second blank, odd or even? (1 point)

Boolean Expression

Boolean Result

quantity = 5 And color = \"Blue\"

quantity = 10 And color = \"Green\"

quantity = 10 Or color = \"Blue\"

quantity = 5 Or color = \"Blue\"

Not color = \"Blue\"

Solution

3)

False
False
False
True
True

5)

First Blank space: odd

Second Blank Space: even

4)

in proagress....

Using (.NET) Microsoft Visual Basics ONLY: Chapter 4- 3. Based on the variable declarations below, determine the value, true or false, for each of the following
Using (.NET) Microsoft Visual Basics ONLY: Chapter 4- 3. Based on the variable declarations below, determine the value, true or false, for each of the following

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site