Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

the task must be completed in Python. Mad Libs are a type of funny story, where a person is asked for words without knowing their

the task must be completed in Python. Mad Libs are a type of funny story, where a person is asked for words without knowing their context. The words are then placed into a story in a pre-determined format, often resulting in funny statements. For example, consider prompts for: Plural noun Blind Adjective Noun And a story, such as: When it comes to [plural-noun], you would never want to [verb], especially if you encountered a [adjective] [noun]. A person, may respond to the prompts with the following: Plural noun: ducks Verb: jump Adjective: cold Noun: taco Then the story would read: When it comes to ducks, you would never want to jump, especially if you encountered a cold taco. Instructions For this assignment, you will implement a program that asks the user for a series of words and then displays the story with the user's words inserted into the appropriate places. The program should begin by asking the user for each of the words. It should then, fill those words into the appropriate places in the story. To begin, please use the following story: The other day, I was really in trouble. It all started when I saw a very [adjective] [animal] [verb] down the hallway. "[exclamation]!" I yelled. But all I could think to do was to [verb] over and over. Miraculously, that caused it to stop, but not before it tried to [verb] right in front of my family. Make sure to match the punctuation and spacing of the original story exactly (for example, you should not put your words on their own line, they should fit naturally into the story). Also, make it so that the "exclamation" word is automatically capitalized, because it starts a new sentence. SAMPLE OUTPUT Here is an example of how your program might work: Please enter the following: adjective: happy animal: zebra blind: sneeze exclamation: hooray blind: read blind: drive Your story is: The other day, I was really in trouble. It all started when I saw a very happy zebra sneeze down the hallway. "Hooray!" I yelled. But all I could think to do was to read over and over. Miraculously, that caused it to stop, but not before it tried to drive right in front of my family. Another example, where the user typed different values might look like this: Please enter the following: adjective: tired animal: snail blind: yell exclamation: oh no blind: sing blind: skip Your story is: The other day, I was really in trouble. It all started when I saw a very tired snail yell down the hallway. "Oh no!" I yelled. But all I could think to do was to sing over and over. Miraculously, that caused it to stop, but not before it tried to skip right in front of my family. Showing Creativity and Exceeding Requirements For this assignment, show creativity and exceed the core requirements by adding more to the story, including several more words that will be filled in. If you have previous experience with topics that we will see later in the semester, consider a sentence that has an "a" or "an" in front of your word, and let the program fill in the right one. Anything else you can think of is also fair game. Remember, the goal here is to experiment with different ideas and to have fun. Submission To submit your assignment, you need to do two things: Upload your program (the .py file) to I-Learn for feedback. Add a submission comment that specifies the grading category that best describes your assignment along with a 1-2 sentence justification for your choice. (Make sure to highlight anything you did to show creativity and exceed requirements!) The grading criteria are as follows: 1 = Some attempt made 2 = Developing (but significantly deficient) 3 = Slightly deficient 4 = Meets requirements 5 = Shows creativity and exceeds requirements

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

Database Fundamentals Study Guide

Authors: Dr. Sergio Pisano

1st Edition

B09K1WW84J, 979-8985115307

More Books

Students also viewed these Databases questions

Question

5. What are the other economic side effects of accidents?

Answered: 1 week ago