CS200 HW – Picture Finder

 

Write a picture finding program.

 

Program should have a text box that you can type a name in to.  It should have a search button to click.  When you click the search button, the program should open up and search thru a text index file of names and pictures and display the picture that matches any part of the name typed in.  And don’t forget to close the text file.  If the picture is not found, it should display “NOT FOUND” below a blank picture.

 

 

The text file has the following format:

NAME STRING 1

PHOTO STRING 1

NAME STRING 2

PHOTO STRING 2

etc…

 

Here is an example of the data:

Bob Bradley

bob320.jpg

Tom Cat

catcap2.jpg

Chimp Monkey

chimp_ss.gif

 

The index file and the actual pictures will need to be in your bin directory.

 

You can download the pictures and the index from my web page, www.utm.edu/~bbradley