Question: i need help with this assignment we are using andriod studios Program Mad Libs are short stories that have blanks called placeholders to be filled

i need help with this assignment we are using andriod studios

Program

"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 silly story. Write an Android app that reads in a Mad Lib from a text file in a specific format. The text file represents placeholders as tokens that start and end with brackets, like or . Your app reads the file, looks for any such placeholders, and prompts the user to replace them with specific words.

Once the user has typed in replacements for all placeholders, the completed story is shown on the screen. The screenshots below indicate a possible flow of the UI for such an app. The example flow has three activities: An initial "welcome" screen explaining the app, then a screen that repeatedly prompts the user to fill in placeholders, then a third activity to display the completed story. Of course you don't need to exactly match the sample's UI, but it may give you ideas.

Suggestion 1: Mad Libs (text processing app with 2-3 activities) "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 silly story. Write an Android app that reads in a Mad Lib from a text file in a specific format.

The text file represents placeholders as tokens that start and end with brackets, like or . Your app reads the file, looks for any such placeholders, and prompts the user to replace them with specific words. Once the user has typed in replacements for all placeholders, the completed story is shown on the screen.

The screenshots below indicate a possible flow of the UI for such an app. Our flow has three activities: An initial "welcome" screen explaining the app, then a screen that repeatedly prompts the user to fill in placeholders, then a third activity to display the completed story. Of course you don't need

i need help with this assignment we are using andriod studios Program

"Mad Libs" are short stories that have blanks called placeholders to be

Here is the text of that file, to give you an idea of the Mad Lib format ne of the most ."Tarzan was raised by a/an . henever he gets angry, he beats on his chest and says, " " This is his war cry. Tarzan always dresses in | shorts made from the skin of a/an noun and his best friend is a/an The code for reading a Mad Lib text file, breaking it apart, looking for the placeholders, etc. is really basic Java programming, so perhaps it is less relevant to this course. To make the assignment more manageable, if you want a head start toward implementing this particular option, you have been given a file called MadLib.java that you can optionally use as a building block. If you put MadLib.java into your project, you can construct a MadLib object and pass it an input stream or Scanner and it will read the text data from that source, break the text apart, and find the placeholders for you, etc. The MadLib object has other methods for filling in the placeholders later. If you use this helper object, you can focus more on the "Androidy" parts of this assignment and less on the string / text processing parts. If you want to try to write the Mad Lib parsing logic yourself, you certainly can Here is the text of that file, to give you an idea of the Mad Lib format ne of the most ."Tarzan was raised by a/an . henever he gets angry, he beats on his chest and says, " " This is his war cry. Tarzan always dresses in | shorts made from the skin of a/an noun and his best friend is a/an The code for reading a Mad Lib text file, breaking it apart, looking for the placeholders, etc. is really basic Java programming, so perhaps it is less relevant to this course. To make the assignment more manageable, if you want a head start toward implementing this particular option, you have been given a file called MadLib.java that you can optionally use as a building block. If you put MadLib.java into your project, you can construct a MadLib object and pass it an input stream or Scanner and it will read the text data from that source, break the text apart, and find the placeholders for you, etc. The MadLib object has other methods for filling in the placeholders later. If you use this helper object, you can focus more on the "Androidy" parts of this assignment and less on the string / text processing parts. If you want to try to write the Mad Lib parsing logic yourself, you certainly can

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!