Advertisement
akosiraff

GenerateWords

May 7th, 2015
306
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.16 KB | None | 0 0
  1.  
  2. Download: http://solutionzip.com/downloads/generatewords/
  3. FINAL PROJECT
  4. Create a program that automatically generates words from letters. Your program/project should be called
  5. [YourName]-Project.java (replace [YourName] with your actual name).
  6. The program should ask the user for 5 letters and then build valid English words using those letters (use each
  7. letter only once) and output them in a table format (showing per line: the word, its length, and its number of
  8. points) and organized (ordered) by one of these criteria:
  9. Criteria Name Meaning and Order
  10. 1 Length Determine the length of the words (the number of letters in the word) and show
  11. the words in the decreasing order of the word length
  12. 2 Points Determine the total number of points (the sum of the points/values for each
  13. letter from the word – see the footnote 1
  14. ) and show the words in the decreasing
  15. order of the total number of points
  16. aa
  17. For example for the
  18. letters C, J, A, V, A, for the
  19. criterion 1, the output
  20. should be:
  21. WORD LENGTH POINTS
  22. JAVA 4 17
  23. AVA 3 7
  24. VAC 3 10
  25. AA 2 2
  26. For the criterion 2, the
  27. output should be:
  28. WORD LENGTH POINTS
  29. JAVA 4 17
  30. VAC 3 10
  31. AVA 3 7
  32. AA 2 2
  33. aa
  34. The program should allow the user to select and change the criterion
  35. and select a different set of letters (i.e. play again). The program should
  36. work for any combination of letters but no other characters. The
  37. program should be user-friendly (have a good enough interface that
  38. allow the user to easily use the program) and be well-documented
  39. (follow the Assignment Code Convention, explain what each line of code
  40. does).
  41. To validate the words, your program should read the list of valid words
  42. from the attached file WORDS.txt and store it in the memory in a
  43. structure that would facilitate the search for words, letter, or groups of
  44. letters. You can use a one-dimensional array or one or more arrays.
  45. Take a screenshot of the editor window (showing the output) and save
  46. it as [YourName]-Screenshot (make sure you preserve the image file
  47. extension) or paste the screenshot(s) in a document called [YourName]-
  48. Screenshot. Replace [YourName] with your actual name. If you have
  49. different output you want to capture in your screenshot or the output
  50. does not fit on one screenshot, create and submit different screenshot
  51. files.
  52. Create a ZIP archive containing the project folder and call it [YourName]-Project.zip. Replace [YourName]
  53. with your actual name.
  54. After you make the code work as requested above, you can try to earn extra points by making the program
  55. better (quality of code, interface, speed, memory usage, etc) without removing any requests above. Email
  56. me with your proposal for improvements/extra things to do and I will let you know if you can get extra
  57. points for that and how many.
  58. SUBMIT the [YourName]-Project.java, [YourName]-Project.zip, [YourName]-Screenshot, and all the other
  59. classes you created for the project on eCampus under the Final Project.
  60. 1 The value (number of points) for each letter are listed in the table below:
  61. Letter: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
  62. Value: 1 4 4 2 1 4 3 3 1 10 5 2 4 2 1 4 10 1 1 1 2 5 4 8 3 10
  63.  
  64. Download: http://solutionzip.com/downloads/generatewords/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement