This problem involves reading in a text file of words in the English language that is too
Fantastic news! We've Found the answer you've been seeking!
Question:
This problem involves reading in a text file of words in the English language that is too large to screenshot but would be willing to send to a tutor if possible and if that is needed named words.txt it involves using iterable functions like stack, queue, or linkedlist after the screenshots is the code given for the assignment in the ScrabbleScores.java file.
Transcribed Image Text:
Scrabble Scores 1. Overview You are to write a program that examines all the words of the English language and creates a list of words with decreasing Scrabble high scores. The program uses an array, ArrayList, Stack and Queue. Scoring Scrabble Words Each letter in the alphabet has been assigned a value based on its relative frequency in English words. Therefore, common letters like R, S, and E are valued at just 1, while rare letters like Q and Z are valued at 10. Refer to the diagram for the letter scores. To score a word, add up the score for each of the letters in the word. For example, the score for "aardvark" is 16 (1+1+1+2+4+1+1+5). 2. Problem Description A, B, E, F, I, J, C3 D₂ G₂ H₁ K5 L₁ M3 N₁ Q10 R₁ U₁ V₁₂ O, P, S, T, W₁ X8 Y₁ Z10 Read and store a list of approximately 64,000 English words (provided) from "aardvark" to "zygote". Go through the list and compute a Scrabble score for each word while keeping track of the highest score found so far. Every time a new high score is found, add the word to a stack. Once the program has completed the word list, print the stack of high scores in reverse order from the highest scoring word to the lowest. When it runs, it should print a list that looks like this (shown in two columns): 45 - pizzazz 38 photosynthesizing 37 electroencephalographs 36 - compartmentalizing 35 compartmentalized 34 blackjacking 33 blackjacked 32 bedazzling 31 bedazzled 30 acclimatization 25 - abuzz 22 - abjectly 21 - abjecting 20 - abbreviating 19 abbreviated 17 aardvarks aardvark 16 We can interpret this list to see that "aardvark" was the first highest score with 16 (indeed, it was the first word in the list). It was next beat by "aardvarks" at 17. That high score stood until "abbreviated" was found with a score of 19. This continued until "pizzazz" scored 45. Going through the rest of the words did not produce a higher score. To make the problem more interesting, the program is going to rotate the list prior to starting the word scoring. Each rotation takes the word from the front of the list and adds it to the end of the list. The program will ask the user for the number of rotations to perform. Scrabble Scores 1. Overview You are to write a program that examines all the words of the English language and creates a list of words with decreasing Scrabble high scores. The program uses an array, ArrayList, Stack and Queue. Scoring Scrabble Words Each letter in the alphabet has been assigned a value based on its relative frequency in English words. Therefore, common letters like R, S, and E are valued at just 1, while rare letters like Q and Z are valued at 10. Refer to the diagram for the letter scores. To score a word, add up the score for each of the letters in the word. For example, the score for "aardvark" is 16 (1+1+1+2+4+1+1+5). 2. Problem Description A, B, E, F, I, J, C3 D₂ G₂ H₁ K5 L₁ M3 N₁ Q10 R₁ U₁ V₁₂ O, P, S, T, W₁ X8 Y₁ Z10 Read and store a list of approximately 64,000 English words (provided) from "aardvark" to "zygote". Go through the list and compute a Scrabble score for each word while keeping track of the highest score found so far. Every time a new high score is found, add the word to a stack. Once the program has completed the word list, print the stack of high scores in reverse order from the highest scoring word to the lowest. When it runs, it should print a list that looks like this (shown in two columns): 45 - pizzazz 38 photosynthesizing 37 electroencephalographs 36 - compartmentalizing 35 compartmentalized 34 blackjacking 33 blackjacked 32 bedazzling 31 bedazzled 30 acclimatization 25 - abuzz 22 - abjectly 21 - abjecting 20 - abbreviating 19 abbreviated 17 aardvarks aardvark 16 We can interpret this list to see that "aardvark" was the first highest score with 16 (indeed, it was the first word in the list). It was next beat by "aardvarks" at 17. That high score stood until "abbreviated" was found with a score of 19. This continued until "pizzazz" scored 45. Going through the rest of the words did not produce a higher score. To make the problem more interesting, the program is going to rotate the list prior to starting the word scoring. Each rotation takes the word from the front of the list and adds it to the end of the list. The program will ask the user for the number of rotations to perform.
Expert Answer:
Answer rating: 100% (QA)
Heres a breakdown of the key points Goal Read a list of English words around 64000 Calculate Scrabble scores for each word Track the highest score found so far Create a stack containing words with the ... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
How do I interpret a negative ROE % if the net income is positive, but stockholders equity is negative
-
You are required to write a Python program that will manage character (heroes and villain) information. Character (hero and villain) information will be stored in a text file that will be read in...
-
Design a Java class that represents a cache with a fixed size. It should support operations like add, retrieve, and remove, and it should evict the least recently used item when it reaches capacity.
-
Returning to the data set canadaemplmntdata from Problem 17.4, get a line chart of Accommodation jobs by subsetting by VECTOR = v81682. Problem 17.4 The file canadaemplmntdata contains quarterly...
-
What is the change in population 2 during these years? The following table describes populations that are growing through immigration or emigration. For each, sketch a graph, find the number of...
-
The gas tank of a car is filled with a nozzle that discharges gasoline at a constant flow rate. Based on unit considerations of quantities, obtain a relation for the filling time in terms of the...
-
Discuss the issues that need to be considered before implementing keystroke monitoring.
-
Eyewitness News is shown on channel 5 Monday through Friday evenings from 5:00 P.M to 6:00 P.M. During the hour-long broadcast, 18 minutes are allocated to commercials. The remaining 42 minutes of...
-
Function: Parent Functions: 1) Create a table of values showing at least four image points for the parent and transformed functions: g(x) = x f(x)=3f-2(x-1)-4 h(x) = x Parent Function Transformed...
-
Allen Blay owns 100% of the stock in AB Corporation, organized ten years ago in California. AB operates a foreign branch in Country A. In the current year, AB reports $500,000 of taxable income from...
-
QUESTION 19 Parkin Industries, a U.S. company, acquired a wholly-owned subsidiary, located in Italy, at the beginning of the current year, for 200,000. The subsidiary's functional currency is the...
-
Teamwork is not working at Southeastern Electric Company (SEC). Juan Morales, quality director for SEC, is growing increasingly frustrated. The companys executive managers all advocate teamwork. A...
-
What do organizational controls cover?
-
What is multistage sampling?
-
What are some of the ways that the cost of preparing working papers can be kept at an economical level?
-
What is the reliability statement?
-
Question 20 5 pts A Ltd acquired a 40% shareholding interest in B Ltd in 20x4. B Ltd acquired a 40% shareholding interest in C Ltd in 20x5. A Ltd acquired a 40% shareholding interest in C Led in...
-
The Home Depot is the leading retailer in the home improvement industry and one of the 10largest retailers in the United States. The company included the following on its January 29, 2012, balance...
-
Refer to Exercise 8.153. a. In the context of the problem, define a Type II error. b. Calculate b for the test described in part a of Exercise 8.153, assuming that the true mean is = 3.1 ppm. c....
-
According to a Food and Drug Administration (FDA) study, a cup of coffee contains an average of 115 milligrams (mg) of caffeine, with the amount per cup ranging from 60 to 180 mg. Suppose you want to...
-
For each of the rejection regions defined in Exercise 8.59, what is the probability that a Type I error will be made? In Exercise 8.59 For each of the following rejection regions, sketch the sampling...
-
Support equipment used to drill a development well cost $13,000 and has a 10-year life with a salvage value of $1,000. The equipment was used for three months in drilling Badger #1. Record...
-
Bartz Corporation paid a seismic crew $2,000 to complete a G&G survey to select a drillsite where Cellar #1 would be spudded-in. Record the above transaction.
-
Decade Petroleum incurred and paid the following costs during 2016: Record Decade Petroleum's transactions. Lease A Unproved Lease B Unproved Lease C Proved Lease D Proved Purchased Acquisition costs...
Study smarter with the SolutionInn App