The document describes an activity to create a program that allows a user to search for a number in an array. The program should prompt the user to enter a number to search for in a sample array containing the numbers 1, 3, 4, 5, 6, 10. If the number is found, it should output the number and its index in the array.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
67 views1 page
ACTIVITY 6 - Search
The document describes an activity to create a program that allows a user to search for a number in an array. The program should prompt the user to enter a number to search for in a sample array containing the numbers 1, 3, 4, 5, 6, 10. If the number is found, it should output the number and its index in the array.