Advertisement
Guest User

Untitled

a guest
Apr 8th, 2015
692
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. Array Processing - Dictionary Program
  2.  
  3. NOTE: Searching an array is covered in the book starting on page 295.
  4.  
  5. Using MS Word, write psuedocode ONLY for the following situation.
  6.  
  7. Create and load an array with the following 7 values. Then add one more word (of your own choosing) to the array for a total of 8 words.
  8.  
  9. biff
  10. comely
  11. fez
  12. mottle
  13. peruke
  14. bedraggled
  15. quisling
  16.  
  17. Create a second array (parallel array). To hold the defintions to these words. You will need to look up the definitions.
  18.  
  19. - Be sure to use lowercase, as shown above. This will make the processing easier.
  20.  
  21. - Use an external .TXT file to load the words and the definitions into the arrays ( words.txt and definitions.txt).
  22.  
  23. Ask the user to enter a word
  24.  
  25. - Search through this array until you find a match with the word the user entered.
  26.  
  27. - Once you find a match, output "Yes, that word is in the dictionary" and output the definition.
  28.  
  29. - If you get to the end of the array and do NOT find a match, output "No, that word is not in the dictionary".
  30.  
  31. - The program should work with any set of words and definition in the arrays. If I were to change the words and definitions in the arrays, it should still work.
  32.  
  33. - Submit your psuedocode file to the Blackboard assignment box.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement