Computer Programming I :: Projects :: MadLibs
Department Connection: English
Problem
You have been giving the immensely important task of designing a Mad Libs game from scratch. A MadLib is a story with words taken out. The words are replaced by the person playing the game who chooses them before reading the story. For example, if an adjective was removed then the player would be asked for an adjective. You can also get more specific by asking for a past tense verb, videogame, or city name that begins with "Chi" and ends with "cago."
You do not have to create a MadLib from scratch. You can go to Teachnology for some example MadLibs, but note that one of the requirements is you must use a word twice, so you may have to modify some of those examples.
Specific Requirements
- Use text boxes to take input from the player for MadLibs.
- You should include at least 10 different words with at least 3 different types of words.
- At least one word should be used in the story more than once.
- Create labels to go along with the text boxes so the player knows what to enter.
- Create a button that will display the story in a message box. Make sure the message box has a title.
- Store the text box contents and the final story in string variables.
- Determine a good name for each variable following the rules.
- Rename the form and all controls on the form using a three-letter prefix.
- Add a comment header following class guidelines.
Tips
- Check the final story carefully. You may need to add spaces to some of your strings.
- Don't forget to use the text property of the text boxes to store their contents in a variable.
- Rename your form components using frm for Forms, lbl for Labels, txt for Text Boxes, btn for Buttons, and pic for Picture Boxes.