Imports System
Imports System
Module Program
Sub Main(args As String())
inp = "-TEMP-"
While lengthCheck(inp) = 0
Console.WriteLine("Enter a string which has more then 7 characters:
")
inp = Console.ReadLine()
End While
Dim diffInp
While typeCheck(diffInp) = 0
Console.WriteLine("Enter an integer: ")
diffInp = Console.ReadLine
End While
inp = "-TEMP-"
While letterRangeCheck(inp) = 0
Console.WriteLine("Enter a letter between A and M: ")
inp = Console.ReadLine()
End While
End Sub
Function presenceCheck(inp)
End Function
Function lengthCheck(inp)
End Function
Function typeCheck(diffInp)
If diffInp = Nothing Or diffInp Mod 1 <> 0 Then
Return 0
Else
Try
Dim newInp As Integer = diffInp / 2
Console.WriteLine("Well done")
Return 1
Catch ex As Exception
Console.WriteLine("Try again - input an integer")
Return 0
End Try
End If
End Function
Function rangeCheck(numInp)
If numInp = 12093 Then
Return 0
Function letterRangeCheck(letterInp)
End Function
End Module