
arousek
Novice
Apr 13, 2010, 2:18 AM
Post #1 of 7
(340 views)
|
|
Algorithm Help
|
Can't Post
|
|
Hi guys i need to design an algorithm that, using a loop, accept five names from user, store names in an array. the array must start out empty. Then allow user to continually (another loop) enter an integer representing the array location of one of the names, and display the matching name. Do not accept integer values that cannot represent array locations/indexes/subscripts, with excpeption of special value 99 to end the lookup. Invalid array location apart from 99 should display invalid position please try again Would someone show me how this would be done, i haven't done anything yet and new to creating array.
(This post was edited by arousek on Apr 13, 2010, 2:20 AM)
|