Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program that plays the game of Mad Lib. Your program should prompt the user to enter the following strings: The first or last

Write a program that plays the game of Mad Lib. Your program should prompt the user to enter the following strings:
The first or last name of your instructor
Your name
A food
A number between 100 and 120
An adjective
A color
An animal
After the strings are input, they should be substituted into the story below and output to the console.
Dear Instructor [Instructor Name],
I am sorry that I am unable to turn in my homework at this time.First, I ate a rotten [Food], which made me turn [Color] and extremely ill. I came down with a fever of [Number 100-120]. Next, my [Adjective] pet [Animal] must have smelled the remains of the [Food] on my homework, because he ate it. I am currently rewriting my homework and hope you will accept it late. Regards,
{Your Name}
image text in transcribed

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

Understanding Oracle APEX 5 Application Development

Authors: Edward Sciore

2nd Edition

1484209893, 9781484209899