Question: C Search jsp?course-assessment-id=-15288 https bladboard.towson.edu emaining Time: 1 hour, 13 minutes, 03 seconds. uestion Completion Status 4. Programming Write a static method named favoriteletter that
C Search jsp?course-assessment-id=-15288 https bladboard.towson.edu emaining Time: 1 hour, 13 minutes, 03 seconds. uestion Completion Status 4. Programming Write a static method named favoriteletter that accepts two parameters: a Scanner from the console, and a favorite letter represented as a one-letter String. The method repeatedly prompts the user until two consecutive words are entered that start with that letter. The method then prints a message showing the last word typed. You may aume that the user will prompting if the user types words that start with a capital A type single word respoees to each prompt Your code should be case sensitive, Gif the fvonite letter is a, you should sot stop The tollowing represents outpat froes twe calla to your methotd npat is underlined Scancer console- new Scanter (System. in)a Eavoriteletter (consoley Scanner console nev Scanser (System.in) 1 fevoriceletter (console, "AE Outpat Looking for two "y" worda in a row. Looking for two "A worda in a row. Type a word: hi Type a word: bys Zype a word: yeS Type a wordi what? Eype words yellow type a word: yippes Type a word: I Type a word: love Type a word: COSC236 Type a word: AND type a word: PROGRAMS Type a word: are Type a wordi always Type a wordi Absolutely Type a word: Awesome y" is for "yippee Click Sove and Subwvt to sove and submit. Click Sove Al Answers to sove all answers Save Ad Aa
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
