Create a program that automatically generates words

Assignment Help JAVA Programming
Reference no: EM13842186

Create a program that automatically generates words from letters. Your program/project should be called

[YourName]-Project.java (replace [YourName] with your actual name).

The program should ask the user for 5letters and then build valid English words using those letters (use each

letter only once) and output them in a table format(showing per line: the word, its length, and its number of

points) and organized (ordered) by one of these criteria:

Criteria Name Meaning and Order

1 Length Determine the length of the words (the number of letters in the word) and show the words in the decreasing order of the word length

2 Points Determine the total number of points (the sum of the points/values for each letter from the word - see the footnote

1

) and show the words in the decreasing

order of the total number of points

aa

For example for the

letters C, J, A, V, A, for the

criterion 1, the output

should be:

WORD LENGTH POINTS

JAVA 4 17

AVA 3 7

VAC 3 10

AA 2 2

For the criterion 2, the output should be: WORD LENGTH POINTS

JAVA 4 17

VAC 3 10

AVA 3 7

AA 2 2

aa

The program should allow the user to select and change the criterion  and select a different set of letters (i.e. play again). The program should work for any combination of letters but no other characters. The program should be user-friendly (have a good enough interface that allow the user to easily use the program) and be well-documented (follow the Assignment Code Convention, explain what each line of code does). To validate the words, your program should read thelist of valid words from the attached file WORDS.txt and store it in the memory in a structure that would facilitate the search for words, letter, or groups of letters. You can use a one-dimensional array or oneor more arrays. Take a screenshotof the editor window (showing the output) and saveit as [YourName]-Screenshot (make sure you preserve the image file extension) or paste the screenshot(s) in a documentcalled [YourName]-Screenshot. Replace [YourName] with your actual name. If you have different output you want to capture in your screenshot or the output does not fit on one screenshot, create and submit different screenshot files.

Create a ZIP archive containing the project folder and call it [YourName]-Project.zip. Replace [YourName] with your actual name. After you make the code work as requested above, you can try to earn extra points by making the program better (quality of code, interface, speed, memory usage, etc) without removing any requests above. Email me with your proposal for improvements/extra thingsto do and I will let you know if you can get extrapoints for that and how many. SUBMIT the [YourName]-Project.java, [YourName]-Project.zip, [YourName]-Screenshot, and all the other classes you created for the project on eCampus under the Final Project.

The value (number of points) for each letter are listed in the table below:

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


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

Reference no: EM13842186

Questions Cloud

Prepare a schedule for each of the three years : Prepare a schedule for each of the three years (2015through 2017) in which you summarize the transactions as they affect permanently restricted, temporarilyrestricted, and unrestricted net assets.
What is each projects irr : What is each projects IRR - what is the crossover rate, and what is its significance and what is the regular payback period for these two projects?
Writing term paper on foster children and special education : Writing a term paper on foster children and special education. The goal is to learn about the unique problems of foster care children who have special education needs, such as, do they tend to receive less services overall, what percentage of spec..
Business practice illustrates the basic principle concept : Give a visual by providing example of a business utilizing the concept principle. Explain how the business practice illustrates the basic principle concept
Create a program that automatically generates words : Create a program that automatically generates words from letters Solution
Prepare a government-wide statement of net assets : Prepare a government-wide statement of net assets.Be sure to show the transportation authority as business-type activity. If the township were to prepare fund statements,how would it report the housing authority's specialrevenue fund?
What is the firms corporate cost of capital : What is the firm's cost of equity estimate according to the DCF method and what is the cost of equity estimate according to the CAPM - What is the firms corporate cost of capital?
Declare a global array solution : Declare a global array Solution
Report both the debt and the golf course in same category : Should the city, in its government-wide statement of net position, report the debt as a governmental activity and the golf course as a business-type activity? Alternatively, should it report both the debt and the golf course in the same category o..

Reviews

Write a Review

JAVA Programming Questions & Answers

  Despite public and private health insurance programs

Why is it that despite public and private health insurance programs, some US citizens are without health coverage?

  Rna hairpins and mirror box drawings

When the program starts up, it should draw a vertical line from the top of the screen to the bot- tom that cleanly divides the window in half. This makes it easier for the user to see the mirror effect.

  Own file to test your program

Create your own file to test your program. Your job is to set up the input and output files to have the program read from a file and write to a file. Here is a basic program that will accomplish what is desired

  Design and implement a set of classes and interfaces and

design and implement a set of classes and interfaces and use them to evaluate the rtas resource requirements.nbspyour

  Develop the game using the concepts of cohesion

Develop the game using the concepts of Cohesion, Coupling and RDD, i.e., responsibility-driven design.

  Write a program to generate an ascii-graphics

Write a program to generate an ASCII-graphics of an equilateral triangle. The input to your program is a single integer number representing the length of the side of the triangle. This number must be 2 or larger.

  Implement a program that will play the old guessing game

Your assignment is to implement a program that will play the old guessing game "I'm thinking of a number between 1 and 100". The program will be in a webpage

  Create a class diagram that shows an interface

Create a class diagram that shows an interface called Buyer in the Violet UML editor. This interface should declare the methods to perform a buyer's responsibilities

  Write a method for computing tax

Financial application: print a tax table- gives a program to compute tax. Write a method for computing tax using the following header

  Make an explicit statement of the invariant of the set class

Write a new container class called ser, which is similar to a bag, except that a set can contain only one copy of any given item, You will need to change the interface a bit. For example, instead of the bag's count function, you'll want a constant..

  Create a project using the classes in the doc sharing area

create a project using the classes in the Doc Sharing area labeled A Simple LinkedList class. Compile it, run it, and review the code that is given carefully. This code tests the LinkedList class provided in the lecture.

  In this project you need to write a java program called

in this project you need to write a java program called mm.java to perform matrix multiplication. your code will read

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd