Search Array Value

create program to search for certain value in an array a) create an array of string type that contains 10 names b) use a loo(either for or while) to search through the array for the name specified by the user c) when the name is found, terminate the loop right away pseudo-ocode - when you find... please enter... show more create program to search for certain value in an array
a) create an array of string type that contains 10 names
b) use a loo(either for or while) to search through the array for the name specified by the user
c) when the name is found, terminate the loop right away
pseudo-ocode - when you find...
please enter a name to search in my database: Eric
Looking for "Eric"...
Not at index 0...
Not at index 1...
Bingo! I found "Eric" at index 6!!
Search ends
pseudo-ocode - when you cannot find...
please enter a name to search in my database: Eric
Looking for "Linda"...
Not at index 0...
Not at index 1...
Sorry! "Linda" is not in my database!!
Search ends

拜託個位大大幫幫我阿..
我想了好多天都想不出來阿..~“~
在這邊先謝謝大家了..感激不近..
2 answers 2