Lab 12 Pre-Lab

The following exercises must be completed before you come to lab. Your instructor will check your pre-lab exercises at the beginning of the lab period. Completion of the pre-lab is worth 5 points of the total 30 points for the lab.

Write an algorithm in pseudocode for the following problem: Write a program that reads up to 100 integers from a file named data.txt (which may contain fewer or more than 100 integers).  Store the integers in an array.  The program with then ask the user for values and will look up each value in the array, printing out the index where the value can be found in the array.  If the value can't be found in the array, the program will print "Not found".  The program should continue to look up values until the user enters a sentinel value of -999. 

Remember to take your textbook to lab. You will need it.