Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Python please. Ad-Libs are fun stories created with words that a user provides without knowing the context ahead of time. Goal: Print the following story

Python please.

image text in transcribed

Ad-Libs are fun stories created with words that a user provides without knowing the context ahead of time. Goal: Print the following story to the output console, where each word in brackets (e.g. ) is meant to be replaced by the user's choice: Once upon a time there was a(n) [ANIMAL] named [NAME] who lived in a [PLANT]. [NAME] liked to go [ACTIVITY]. Ask the user for the following information... ...one question at a time, in this particular order: 1. An activity such as swimming or hiking. 2. A type of plant. 3. A type of animal. 4. A name. Then replace the words in brackets in the story with the user's answer to each of your questions. Put the sentence together and display it on the screen. You can word your questions/prompts however you want, but make sure the story you display at the end matches the required format exactly. Every space, period, and parenthesis needs to match. Example: The program asks En and the user responds (and hits ENTER). The program asks and the user responds hits ENTER). The program asks and the user responds (and hits ENTER). The program asks and the user responds (and hits ENTER). Then the program puts together all the parts of the sentence with the user's words and displays: Once upon a time there was a(n) lion named Maurita who lived in a ficus. Maurita liked to go programming

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_2

Step: 3

blur-text-image_3

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

Concepts of Database Management

Authors: Philip J. Pratt, Mary Z. Last

8th edition

1285427106, 978-1285427102

More Books

Students also viewed these Databases questions

Question

How do books become world of wonder?

Answered: 1 week ago