Things we learned about using methods to divide up a story:
Breaking up programs in this way is one use of abstraction to manage complexity in computing. As noted at the start of the module, abstraction is a process of hiding the detail of an operation while still keeping its essential characteristics visible.
Sample questions you should be able to answer after this module:
[Q2.7.1]: What is the best explanation of why we divide code into methods?
[Q2.7.2]: What term do you use to refer to the indicated area below?
Q2.7.2 picture:
[Q2.7.3]: What term do you use to refer to the indicated area below?
Q2.7.3 picture
There are other reasons why it's valuable to use methods, beyond making a program's code body more manageable for humans, and we will go on to explore these in the next two modules.