Assignment 7
Defining and Using Fruitful Functions
Submit before 11:30 PM Saturday May 25
Overview
You will develop a program that generates a story whose structure matches function definitions.
Story Program
Using the program story.py as an example and possible starting point, write a program that generates a story using multiple levels of function calls that mirror the structure of your story.
Your program must have the following requirements:
- At least two functions must have randomly determined elements.
- Your program must accept some form of user input (e.g. name of the hero), which is then used throughout the story.
- The function structure of your program must have at least four levels. The example program only has three levels. To add a fourth level, you will need to define at least one extra function and have its returned result used by one of the functions at the bottom level (e.g. create_intro).
- The program must have at least three function calls at some level in your program. The example program already meets this requirement.
- The content of your story must be original.
- The output of your story should be grammatically correct and neatly formatted.
Deliverables
Create a text or pdf file called assn7 that contains the following:
- A statement that describes your experience. Indicate how it addresses the requirements. Include any information on how you got help or collaborated with someone.
- A listing of your program.
- Output of you running your program to produce a story.
Submit your assn7 file (txt or pdf) to D2L.