Question: KEY NOTES: PLEASE DO NOT USE BUFFEREDREADER. I WOULD LIKE HELP USING SCANNER, WHILE/FOR LOOPS, FILES, AND ARRAYS IF NEEDED, to check my work. The

KEY NOTES:

PLEASE DO NOT USE BUFFEREDREADER. I WOULD LIKE HELP USING SCANNER, WHILE/FOR LOOPS, FILES, AND ARRAYS IF NEEDED, to check my work.

KEY NOTES: PLEASE DO NOT USE BUFFEREDREADER. I WOULD LIKE HELP USINGSCANNER, WHILE/FOR LOOPS, FILES, AND ARRAYS IF NEEDED, to check my work.

The program is to create a computerized version of game called "Mad Libs". Mad libs are short stories that have blanks called placeholders to be filled in. In the non-computerized version of this game, one person asks a second person to fill in each of the placeholders without the second person knowing the overall story Once all placeholders are filled in, the second person is shown the resulting story, often with humorous results. Here is a short video for how to play the non-computerized version When creating a new mad lib, the program prompts the user for input and output file names. Then the program reads the input file, prompting the user to fill in any placeholders that are found without showing the user the rest of the story. As the user fills in each placeholder, the program is writing the resulting text to the output file. The user can later view the complete mad lib story by accessing the output file and you to direct him where this file is stored in his machine as part of your console output. Also, you need to print how many lines are in the final story and how many words. The log below shows one sample execution of the program Welcome to the game of Mad Libs. I will ask you to provide various words and phrases to fill in a story file name story.txt EnPut notltouastvatk mabldib.txt File not found. Try again mabldib. txt File not found. Try again: madlib. ExE Output file name: out.txt Please type an adjective: sill Please type a plural noun:apples Please type a noun: frisbee Please type an adjective: hun Please type a place: Belle Please type a plural noun: bees Please type a noun: umbrella Please type a funny Please type an adjective: shin Please type a noun ielly aonu Please type an adjective: beautiiul Please tpe a plural noun: spoons Please type a person's Your mad-lib has been createdT You can access your out1.text in your C:/ directory anu Reeves Your story made out of 10 lines with 98 word. Notice that if an input file is not found, for creating a mad-lib the user is re-prompted. No re-prompting occurs for the output file. If it does not already exist, it is created. If it already exists, overwrite its contents. (These are the default behaviors in Java.) You may assume that the output file is not the same file as the input file

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!