1. (10 points) The program below has comments on the ends of some lines. For eac
ID: 3722169 • Letter: 1
Question
1. (10 points) The program below has comments on the ends of some lines. For each line listed in the table below, determine whether the give identifier is a parameter, argument, local variable, or method name import javautilScannex: public class 0ordsame public static void main (StrinqI axas) Scanner keyboard-new Scanner (System.in); String Rdaxaaaan "YES". / Line 1 bRolean won = Rdanh26ame (keyboard) ; if (won) // Line 2 // Line 3 Svatem.outuxrintla("The word guesser won!") else Syatemoutuxrintbal"The word guesser lost!") SyateMgutuprinb("Do you want to play again?") public static bgalean elaheaneScanner keyboard) // Line 4 String word; String guess="». // the current guess, empty so the first // the word to be guessed //iteration doesn't break ("Enter a word for your opponent to guess"); word = String shuffled = shuffle (word); // Show the shuffled word one character at a time, allowing the //Line 5 // user to guess forint index 1; indexExplanation / Answer
1. playAgain - local variable
2. keyboard - argument
3. won - parameter
4. keyboard - parameter
5. shuffle - method name
6. word - argument
7. letters - parameter
8. random - method name
9.index - argument
10. setCharAt - method name
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.