Tuesday, June 23, 2009
Saturday, June 6, 2009
Program
'read in a user's name. If the name is longer than 10 characters, tell
'the user their name is too long. Otherwise give them a friendly greeting!
'make a Function. Give it an appropriate name.
'the user their name is too long. Otherwise give them a friendly greeting!
'make a Function. Give it an appropriate name.
On your blog...
I would like for you to define:
- Sub routine
- Function
- Algorithm
- Namespace
- "My" as it relates to Visual Basic .NET
largest number function
Function largestNumber(ByVal num1 As Integer, ByVal num2 As Integer, ByVal num3 As Integer) As Integer
Dim largestNum = num1
If num2 > largestNum Then
largestNum = num2
End If
If num3 > largestNum Then
largestNum = num3
End If
Return largestNum
End Function
Dim largestNum = num1
If num2 > largestNum Then
largestNum = num2
End If
If num3 > largestNum Then
largestNum = num3
End If
Return largestNum
End Function
First assignment, third class
'make a sub routine that takes in a number and print out
'that number squared!
'that number squared!
Subscribe to:
Posts (Atom)
