Growing Madlibs Code Challenge
Increment 5
-
Uses a class to:
a. Gather the following parts of speech from the user (each can be a word or phrase): Noun Adjective Verb Adverb Object
b. Ask user to choose a method of transport from a list of four options
c. Store all of these in a hash.
-
Stores the hash values outside the class
-
Creates an array with four sentence templates.
-
Uses another class to insert the hash values into the sentence templates
-
Prints the completed sentences and exits