Starting from:

$15

Name match

Create an array in VL with up to 100 elements, call it Username[100]
3. Use a For loop with K from 1 to 100
a. Input name
b. If (name != "LastName") Then
SET Username[k] = name
c.Else, exit loop.
//Notice that K has the last input in the array.
4. Do the following:
Prompt user for a name to check, or enter Stop to end, both in quotes.
Input name
IF (name != "Stop") THEN
For (L = 1; L <= K; L++)
IF (name == Username[L]) THEN
Write " Name " + name + " Is a match."
SET Flag = "TRUE"
ELSE
SET Flag = "FALSE"
END IF
END FOR
IF (Flag == "FALSE") THEN
Write "The name " + name + "Did not match."
END IF
END IF
WHILE name != "Stop"

More products