The software development house you work for has decided to create a prototype based on the...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
The software development house you work for has decided to create a prototype based on the game Scrabble, but with a twist, that will be used on mobile devices. They require a prototype from you that is designed using a Java console application. If the prototype is a success, the application will be developed for the mainstream mobile platforms. You are firstly required to prompt the user to enter in a one to start the game. If the users decide to play the game, prompt for the two player names. Welcome to the WORD WARS game. Press (1) To start the game. Press any other key to exit the game Enter your selection: 1 ************ Enter player 1 name: Andile Enter player 2 name: Sam The players will then be presented with the alphabet. Each player has to enter a word with the available letters in the alphabet list. When a player enters a word, the letters of that word get removed from the alphabet list. Only vowels are not removed from the alphabet list. Before a word can be accepted both players must agree if the word entered is valid or not. LETS PLAY WORD WARS!I! Alphabet lettezs let:Abede tchis Andile entez your word: java Entez (y) yes if both players agree on the vard Alphabet letters left: a bederchi kiznopa tu v xy z Sam enter your word: logic Enter (y) yes if both playeza agree on the vord Alphabet lettera left: a b def hi * ESOPR=atu v x Y = Andile enter your vard: It is suggested that players have a dictionary present to determine the validity of the word. If the word is accepted, the player is awarded one point for each letter in the word. This letter tally will determine who the winner is when the game is finished. A letter can be used more than once in the creation of a word, but then must be removed from the alphabet list. For example, the word "FILL" contains two "L", which must be removed from the alphabet list. Once a letter has been removed from the alphabet list, a player cannot enter a word that contains the missing letters. You are required to display a suitable message for this and prompt the player to enter in a new word. Alphabet letters left: ab def hi k m nopq Andile enter your word: concatenation YOU ENTERED A WORD THAT CONTAINS A LETTER THAT IS USED OR IS NOT VALID. PLEASE ENTER ANOTHER NORD! Andile enter your word: | The game continues until a player cannot create any more words with the remaining alphabet list. If a player cannot create a word, they are required to enter in a sentinel value of three question marks "???". Once a player has quit the game, display who the winner of the game is with their accumulated points or if the game is tied. Andile enter your word: ??? WINNER OF THE GAME IS: SAM with a score of:5 YOUR NAME HAS BEEN SAVED TO THE HALL OF FAME!!! THE GAME IS NOW OVER. THANKYOU FOR PLAYING WORD WARS!!! The software development house you work for has decided to create a prototype based on the game Scrabble, but with a twist, that will be used on mobile devices. They require a prototype from you that is designed using a Java console application. If the prototype is a success, the application will be developed for the mainstream mobile platforms. You are firstly required to prompt the user to enter in a one to start the game. If the users decide to play the game, prompt for the two player names. Welcome to the WORD WARS game. Press (1) To start the game. Press any other key to exit the game Enter your selection: 1 ************ Enter player 1 name: Andile Enter player 2 name: Sam The players will then be presented with the alphabet. Each player has to enter a word with the available letters in the alphabet list. When a player enters a word, the letters of that word get removed from the alphabet list. Only vowels are not removed from the alphabet list. Before a word can be accepted both players must agree if the word entered is valid or not. LETS PLAY WORD WARS!I! Alphabet lettezs let:Abede tchis Andile entez your word: java Entez (y) yes if both players agree on the vard Alphabet letters left: a bederchi kiznopa tu v xy z Sam enter your word: logic Enter (y) yes if both playeza agree on the vord Alphabet lettera left: a b def hi * ESOPR=atu v x Y = Andile enter your vard: It is suggested that players have a dictionary present to determine the validity of the word. If the word is accepted, the player is awarded one point for each letter in the word. This letter tally will determine who the winner is when the game is finished. A letter can be used more than once in the creation of a word, but then must be removed from the alphabet list. For example, the word "FILL" contains two "L", which must be removed from the alphabet list. Once a letter has been removed from the alphabet list, a player cannot enter a word that contains the missing letters. You are required to display a suitable message for this and prompt the player to enter in a new word. Alphabet letters left: ab def hi k m nopq Andile enter your word: concatenation YOU ENTERED A WORD THAT CONTAINS A LETTER THAT IS USED OR IS NOT VALID. PLEASE ENTER ANOTHER NORD! Andile enter your word: | The game continues until a player cannot create any more words with the remaining alphabet list. If a player cannot create a word, they are required to enter in a sentinel value of three question marks "???". Once a player has quit the game, display who the winner of the game is with their accumulated points or if the game is tied. Andile enter your word: ??? WINNER OF THE GAME IS: SAM with a score of:5 YOUR NAME HAS BEEN SAVED TO THE HALL OF FAME!!! THE GAME IS NOW OVER. THANKYOU FOR PLAYING WORD WARS!!!
Expert Answer:
Answer rating: 100% (QA)
import javautilArrayList import javautilArrays import javautilList import javautilScanner public class Scrabble static String name1 static String name... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
A chemist is calibrating a spectrophotometer that will be used to measure the concentration of carbon monoxide (CO) in atmospheric samples. To check the calibration, samples of known concentration...
-
The accounts that will be used by Zant Moving Company follow. Prepare a chart of accounts for the firm. Classify the accounts by type, arrange them in an appropriate order, and assign suitable...
-
The accounts that will be used by Dad & Sons Moving Company follow. Prepare a chart of accounts for the firm. Classify the accounts by type, arrange them in an appropriate order, and assign suitable...
-
A specific purpose statement is not stated in the speech but includes both the general purpose and the topic. It often reveals the intended goal for the audience. O True False
-
As described in Section 25.5B, acid-base catalysis is believed to be the mechanism by which ribosomes catalyze the formation of peptide bonds in the process of protein translation. Key to this...
-
Presented below is information from the statements of owner's equity for Kerkan Consulting for the first three years of operation. Determine the missing amounts: 2014 $68,000 2013 2015 J. Kerkan,...
-
Ajax Savings Bank has certificate of deposit notes with a face value of $\$ 10,000$ with a $10 \%$ interest rate compounded daily. What is the current market price of the $\mathrm{CD}$ if the term of...
-
Operating budgets: labor hiring plan Strathfield Motel is planning its operations for the upcoming tourist season. The motel has 60 units. The following table presents the average number of daily...
-
Patty Stone started a new store to sell backpacks in January. The following events occurred in the first month of operations. a. Issued 5,000 shares of $1 par value common stock to investors for cash...
-
Janice Morgan, age 24, is single and has no dependents. She is a freelance writer. In January 2021, Janice opened her own office located at 2751 Waldham Road, Pleasant Hill, NM 88135. She called her...
-
Create a UML diagram to represent the following Data Structure: public class Person private Car c = null; public static void main(String[] args) { } Person p = new Person(); p.buyCar(); public void...
-
Share Your Group Findings Discussion Board: Theoretical Position of Developmental Theories Select and respond by answering: Does the theory fall under nature, nurture, or both? Why? What evidence...
-
What signs or symptoms would you expect to see in a student struggling with fluency? Explain
-
Jackpot Mining Company operates a copper mine in central Montana. The company paid $1,150,000 in 2024 for the mining site and spent an additional $630,000 to prepare the mine for extraction of the...
-
Read instruction Manual, study excel spread example for GEC and Power points . Make an international expansion plan for a company of your choice. Explain why these assumptions make sense.Convince...
-
At what age do you consider someone to be old...and why?
-
The following information is available for Lock Company, which produces custom security systems and uses a job order cost accounting system. November 30 December 31 Inventories Raw Materials Work in...
-
Select the correct answer for each of the following questions. 1. On December 31, 20X3, Saxe Corporation was merged into Poe Corporation. In the business combination, Poe issued 200,000 shares of its...
-
Fellowes and Associates Chartered Accountants is a successful mid-tier accounting firm with a large range of clients across Canada. During the financial year 2011, Fellowes and Associates gained a...
-
Securimax Limited (Securimax) has been an audit client of KFP Partners (KFP) for the past 15 years. Securimax is based in Waterloo, where it manufactures high-tech armour-plated personnel carriers....
-
Required For each of the following items, identify the related assertion: (a) Inventory is recorded at the lower of cost and net realizable value. (b) All delivery vans recorded in the accounting...
-
A political pollster approaches people on the street and asks them to describe their political affiliation. Twenty-eight people describe themselves as Democrats, 25 as Republicans, 8 people provide a...
-
Listed below are a number of hypothetical research hypotheses. For each hypothesis, identify the independent and dependent variable. a. Male drivers are more likely to exhibit road rage behaviors...
-
Listed below are a number of research questions and hypotheses from actual published articles. For each hypothesis, identify the independent and dependent variable. a. The use of color in a Yellow...
Study smarter with the SolutionInn App