Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem Background Madlibs is a story game for kids: a story is written and a few important words are taken out, replaced by blanks. The

image text in transcribed

Problem Background Madlibs is a story game for kids: a story is written and a few important words are taken out, replaced by blanks. The blanks are labelled with their part of speech or other category ("noun", "adjective", "an animal", and so on). One kid reads out the categories, another kid (or kids) supply new words without knowing the story. When all the blanks have been filled in, the story is read out, usually with comic results. For example, here is a short story with a number of generic words Once upon a time, deep in an ancient jungle, there lived a animal. This animal liked to eat food, but the jungle had very little food to offer. One day, an explorer found the animal and discovered it liked food. The explorer took the animal back to city where it could eat as much food as it wanted. However, the animal became homesick, so the explorer brought it back to the jungle, leaving behind a large supply of food. The End The idea is to ask the user for an animal, food, and city and replace each occurrence of that word with the user's input. So if the animal was "wombat", the food was "peaches & cream ice cream" and the city was "Toronto" the story would be: Once upon a time, deep in an ancient jungle, there lived a wombat. This wombat liked to eat peaches & cream ice cream, but the jungle had very little peaches & cream ice cream to offer. One day, an explorer found the wombat and discovered it liked peaches & cream ice cream. The explorer took the wombat back to Toronto, where it could eat as much peaches & cream ice cream as it wanted. However, the wombat became homesick, so the explorer brought it back to the jungle, leaving behind a large supply of peaches & cream ice cream The End 1. Define the Problem Using only Python techniques we have learned up to now, we would like to develop a Madlib game. Internally the game will have with certain words that are to be replaced. The player will be repeatedly prompted for new words that match certain grammatical or descriptive requirements. Once all the words have been entered, the story will be output for everyone to read and enjoy. It would be great if the sample stories would be randomly generated each time we run the game or if we had a library of stories that we could read in. These are a bit beyond our abilities at the moment so for now, let's go with some "hard-coded" story

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intelligent Information And Database Systems Third International Conference Achids 2011 Daegu Korea April 2011 Proceedings Part 2 Lnai 6592

Authors: Ngoc Thanh Nguyen ,Chong-Gun Kim ,Adam Janiak

2011th Edition

3642200419, 978-3642200410

More Books

Students also viewed these Databases questions

Question

What is management growth? What are its factors

Answered: 1 week ago