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
-
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...
-
Milan Company Limited uses the gross profit method to estimate inventory for monthly reports. Information follows for the month of May: Instructions (a) Calculate the estimated inventory at May 31,...
-
(a) Suppose that Li2O is added as an impurity to CaO. If the Li+ substitutes for Ca2+, what kind of vacancies would you expect to form? How many of these vacancies are created for every Li+ added?...
-
In an ideal duel cycle, the compression ratio is 12 and maximum pressure is limited to \(80 \mathrm{bar}\). If the heat supplied is \(2,000 \mathrm{~kJ} / \mathrm{kg}\), find the temperature and...
-
Explain the difference between a customers order and a sales order, as these terms might be used by a manufacturing company making sales on credit.
-
A weight of 100kN is hung by means of two strings from the ceiling as shown. Find the tension in two strings 60 T 1 100 kN 30 T2
-
The rotary potentiometer shown below is used to measure the angular dispalcement of a robotic envolue joint which has range of -55 to +235. Here, Vs=5 V, and Vo is the ouput voltage that will be...
-
On January 1, 2018, Paul Company purchased 80% of the common stock of Smith Company for $300,000. On this date Smith had total owners' equity of $350,000. Any excess of cost over book value is...
-
I need to borrow $5,000 for a car because it enables me to get a job as a traveling anvil seller. Larry the Loan Shark will loan me the $5,000 at an interest rate of 90%. Principle and interest are...
-
Part A The area in the center of the A band that contains no thin filaments is the OH band. I band. Ozone of overlap. O Z line. M line. Submit Request
-
Explain the outcome of each of the following boolean expressions: C = 41 C == 40 C != 40 and C < 41 C != 40 or C < 41 not C == 40 not C > 40 C
-
Calgary Paper Company produces paper for photocopiers. The company has developed standard overhead rates based on a monthly capacity of 64,000 direct-labor hours as follows: Standard costs per unit...
-
1. On 1st January, 2019, Fan Milk Ltd. acquired a machine under the following terms for commercial production. GHC Manufacturer's base price 2,000,000 Trade discount (applying to base price only) 15%...
-
Find the equation of the plane passing through the points P 5,4,3 ,Q 4,3,1 and R 1,5,4
-
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...
-
A crystal sample of bacteriorhodpsin, a light-sensitive protein found in halobacteria that responds to light energy, has crystal planes separated by 0.20 nm. If a beam of 11 keV x rays illuminates a...
-
A nickel crystals work function is measured to be 5.22 eV at 25C. As the temperature increases by 300C, the work function drops by 50 meV. By how much does this shift the threshold wavelength for...
-
A study of photosynthesis in phytoplankton in the open ocean used short pulses of laser light to trigger photosynthetic reactions. The investigators system used 0.10 mW pulses of 640 nm laser light...
Study smarter with the SolutionInn App