Skip to content

adubrock/pcs_code_challenge_01

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

pcs_code_challenge_01

Growing Madlibs Code Challenge

Increment 5.1 ** New features outlined in 1b and 3.

  1. 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. (New Feature) Gather a mode of transportation via a multiple choice prompt. (If an improper number is detected, the user gets a pre-determined mode of transportation).

    b. Store all of these in a hash where the key is the name of the part of speech. For example, "noun," "verb," or "transport."

  2. Stores the hash values outside the class

  3. Creates an array with four sentence templates. New: one more template added in this increment, which includes the new mode of transportation, and one of the older templates now includes this mode of transportation.

  4. Uses another class to insert the hash values into the sentence templates

  5. Prints the completed sentences and exits

About

Growing Madlibs Code Challenge

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%