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

  Write a functions that takes an array of doubles

1. Write a function that is passed a single integer and then calculates the factorial of that number. A factorial is the product of the integer times all of the integers below it stopping at 1. So n!= n*(n-1)*(n-2).......3.2.1

  What are mobile oss you have personally used explain the

write a 200- to 300-word short-answer response to the following bull what are mobile oss you have personally used?

  Java program to implement currency converter

Write a JAVA program that helps the user convert currency. The user will enter the amount in Kuwaiti dinars. The program will print the equivalent amount in US dollar and Euros count his change.

  Process of buying a soda from a soda machine

Please write a Java Program those steps through the process of buying a soda from a Soda Machine.  You must interact with the consumer. Each Soda is one dollar.

  supply a student tester class that tests all methods

Implement a class Student. For the purpose of this exercise, a student has a name and a total quiz score. Supply an appropriate constructor and methods getName( ), addQuiz(int score), getTotalScore( ), and getAverageScore ( ).

  Modify the inventory program by adding a button to the gui

If the first item is displayed and the user clicks on the Previous button, the last item should display. If the last item is displayed and the user clicks on the Next button, the first item should display. Add a company logo to the GUI using Java ..

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Create the program which converts fahrenheit to celsius

Create the following program which converts Fahrenheit to Celsius. Read integer Fahrenheit temperatures from the user.

  Lists the number of appointments

Create a query that lists the number of appointments for each doctor by day. Display the number of appointments, the doctor ID, and the appointment date. Display the output in order of doctor ID with the lowest doctor ID first.

  A class is a blueprint for an object

A class is a blueprint for an object. A class may have a default constructor, a constructor with arguments, accessor methods, mutator methods, public fields, and private fields.

  Simple java application that uses the string

Create a simple Java application that uses the String class and/or the StringBuffer class and at least 4 of the class methods. Show the code, demonstrate it works properly and describe what it is doing.

  Write an enhanced for loop

Write an enhanced for loop that counts how many numbers in an ArrayList object named list are negative. Print the count after the loop terminates

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