Algorithms

Thank you for your interest in working at Nexternal! Using any programming language, please complete the two algorithms listed below and include them with submission of your resume as .txt attachments.


1. Create a function (ConvertTextToInteger) that takes a string input, and, if the string matches the (case insensitive) name of an integer between zero and twenty (e.g. five, TEN, etc.), returns the integer.

i.e. Function ConvertTextToInteger(input As String) As Integer


2. Create a function (IsAlphaNumeric) that takes a string input and returns a boolean indicating whether the string is alphanumeric. The function should also have options to allow spaces and underscores to be considered alphanumeric.

i.e. Function IsAlphaNumeric(input As String, Optional allowSpace As Boolean = False, Optional allowUnderscore As Boolean = True) As Boolean