0% found this document useful (0 votes)
28 views1 page

Mad Libs

The document is a story program that prompts the user for input like their name, a superhero name, and other details to generate a personalized story where they become a superhero and go on a mission but it ends up being a dream.

Uploaded by

Siona Singh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views1 page

Mad Libs

The document is a story program that prompts the user for input like their name, a superhero name, and other details to generate a personalized story where they become a superhero and go on a mission but it ends up being a dream.

Uploaded by

Siona Singh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

' A new Program!

TextWindow.BackgroundColor="Magenta"
' A new Program!
TextWindow.WriteLine("What is your name?")
name = TextWindow.Read()
TextWindow.WriteLine("Write a superhero name.")
superhero = TextWindow.Read()
TextWindow.WriteLine("Write your best friend name.")
bff = TextWindow.Read()
TextWindow.WriteLine("Write a Verb.")
verb = TextWindow.Read()
TextWindow.WriteLine("Write a Mythical creature name.")
mythicalcreature = TextWindow.Read()
TextWindow.WriteLine("Write your favourite colour.")
colour = TextWindow.Read()
TextWindow.WriteLine("Write a country name.")
country = TextWindow.Read()
TextWindow.WriteLine("Write a villain name")
villain = TextWindow.Read()
TextWindow.WriteLine("The mighty " + superhero + ".")
TextWindow.WriteLine("Hi!My name is " + name + " and I have a secret to share with
you.")
TextWindow.WriteLine("I am a normal child by day and " + superhero + " by night.")
TextWindow.WriteLine("Only you and my best friend " + bff + " knows about my
secret.")
TextWindow.WriteLine("You may wonder how I became " + superhero)
TextWindow.WriteLine("Well one night I was " + verb + " when suddenly a " +
mythicalcreature + " appeared in front of me.")
TextWindow.WriteLine("He/She said as you like the colour " + colour + " you now
have become " + superhero + ".")
TextWindow.WriteLine("My mission is to save people of " + country + ".")
TextWindow.WriteLine("Oh no!" + villain + "!")
TextWindow.WriteLine("Boom!")
TextWindow.WriteLine("Oops!It was a dream. Ouch! It hurts when you fell of the
bed.")
TextWindow.WriteLine("Bye now.....")

You might also like