Question
Write a program called storied that: (15 points) a. In a comment on the first line gives your full name (first and last). b.
Write a program called storied that: (15 points) a. In a comment on the first line gives your full name (first and last). b. Asks the user for a series of inputs: i. A first name. ii. An animal. iii. A pet name. iv. A verb. v. An object. vi. An adverb. vii. A psychological condition. viii. An emotion. ix. An exclamation. c. If any of what was inputted was left blank by the user, tells the user that, to punish them for their insolence, the program will stop now. The program then stops running. d. Otherwise, the program prints out (all on one line, using placeholders) the following two-sentence story: i. [First Name] told their [animal], [petname], to [verb] the [object] [adverb] as a way to overcome their [psychological condition]. When they tried it, [petname] felt [emotion] and shouted "[exclamation]!"
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get StartedRecommended Textbook for
Income Tax Fundamentals 2013
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
31st Edition
1111972516, 978-1285586618, 1285586611, 978-1285613109, 978-1111972516
Students also viewed these Programming questions
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
View Answer in SolutionInn App