Type a Visual Basic statement that declares variable myCity
Type a Visual Basic statement that declares variable myCity as a string and initializes it to \"Monrovia\". Note: Letters that are not capitalized properly will count against you (e.g., the following statement is incorrect: dim temp as double). Make sure to only include one space in between each word/letter/symbol.
Type a single Visual Basic statement that declares myHeight as a real number and initializes it to 6.15.
Type a single Visual Basic statement that declares myWeek as a whole number and initializes it to 3.
Type a single Visual Basic statement that declares myWeight as a real number and initializes it to 131.55.
Type a single Visual Basic statement that declares variable health as a whole number and initializes it to 100.
Solution
Module Module1
Sub Main()
// To declare as string
Dim myCity As String = \"Monrovia\"
// To declare Real numbers
Dim myHeight As Double = 6.15
// To declare as Integer
Dim myWeek As Integer = 3
Dim myWeight As Double = 131.55
Dim myHealth As Integer = 100
End Sub
End Module
