[SOLVED] SOLVED:Name match

18.99 $

Programming resource
Digital learning resource
Category:
Practical programming resource
Suitable for guided study and reference
Tutor guidance available when needed

Description

5/5 - (1 vote)

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”

Resource details

Understand the Task Before You Use the Resource

Review the requirements, identify the programming concepts involved, study the implementation and test your understanding with your own examples and modifications.