In the last activity you created functions as a way to make the program easier to understand. Although the importance of using local variables whenever possible was emphasized, you also learned how to use several global variables as a first step in working with functions. 

In this activity you will learn how to pass information from one function to another so you can eliminate the majority of global variables.


  • Learn formatting for passing information between functions