Table Assignment

In this assignment you will read in items into a table and perform a search of the table.

Define a table of 100 double words. Prompt the user and read in values into this table. Use a sentinel based reading scheme where a minus sign terminates the reads, but also stop if it exceeds 100. Make sure the prompt shows how to stop adding the items.

Next prompt the user for a value to find within the table. If the value is found show the zero based index of the item. If the value is not found, then state this is the case. Also have this find process that is in a loop that is terminated by negatives.

This could be done with string statements, but refrain from using them.

This will be due on Tuesday, February 26.

Return to CS 350 Home Page