Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "People or Place?"
- if(choice=people)
- {
- "sort or search?"
- if(choice=sort)
- {
- "first or last?"
- if(choice=first)
- {
- display list of information on all people
- from database, sort by first, last, name(s)&mi.
- }
- else
- {
- display list of information on all people from data
- base, sorted by last name, first name, mi.
- }
- }
- else
- {
- "exact or partial?"
- if(choice=exact)
- {
- prompt for exact name
- search database for matching name
- display person's information to user
- }
- else
- {
- prompt for partial name
- search database for names that include input anywhere within the name
- display information on all of matching people to user.
- }
- }//end of "people choice"
- /**Beginning of "place" dialogue*//
- else
- {
- "state or city?"
- if(choice=state)
- {
- prompt for two state letter abbreviation
- search for state
- display alphabetical list of all cities within that state
- showing information on all the people in the database born
- in each city
- }
- else
- {
- prompt for two-letter state abbreviation
- prompt for city name
- search for city with a matching name
- display information on all the people who were born in that city.
- }
- }
- //END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement