Question: write a java program Write a program that generates scrambled from one or more words provided by the user Step 1: Input. You will prompt

 write a java program Write a program that generates scrambled fromwrite a java program

Write a program that generates scrambled from one or more words provided by the user Step 1: Input. You will prompt the user to enter a word to be scrambled Step2: Caculation. write a method pe ivate statle Stzing Scranble Stzing word that constructs a scrambled version of a given word, randomily flipping twocharacters other than the first and last one. Helpful hints We can use the substring method to help un change the value of a character in a string For example, let's say we want to change the S character ie the character at index 4) of nylane to the character String Ryaneaymond" Step 3: Output. The program will print out the serambled version of the wond provided by the uver, and then prompt the user to enter another word. If the user is finished, they can indicate that they are ready to stop the program if the user wants to continue entering words to scramble, the program should loop back to Step 1 Example program run Scranbled word: pkcile Hould you like to enter another word to scramble? Y/N) Invalid response: y Hould you like to enter another word to scranble? CN) Enter a word to scranble: Scranbled word: a Hould you like to enter another word to scramble? (Y/N Invalid response: do Hould you like to enter another word to scranble? (Y/N dog Scrasbled word: dog Hould you like to enter another word to scramble? (Y/N) Enter a word to scranble: dogs Scranbled word: dgos Hould you like to enter another word to scramble? (Y/N) Enter a word to scranble: Seranbled word: Louisnala

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!