Madlibs Lab
Your task is to create a madlibs program. Madlibs are stories
where some words are removed. A person is asked to provide the
missing words without knowing what the story is. The words are then inserted. The idea is that
when you read the story, it will be funny. To get a better idea
of what I am talking about, go to these websites and try some:
Here is a sample of what your project might look like (your story should be longer):
Please enter a noun
pants
Please enter a verb
fly
Please enter a place
South Gate
The pants fly at South Gate.
Madlibs that are online
Once you get an idea of how these things work, it's time to plan
what you will do. Your program should ask the user to input
different words. You can then store the words in variables and
combine them with your story and print it out. The story itself can be one that you make
up. Or you could use one form the website with the samples.
It's up to you. Your
program should take in at least 10 words to put into the story.
Download the files to start: Madlibs.java & Dialog.class
See an example: student example
Rubric
Things that might help you:
endlines are \n