Programming Basics Statements and Functions
Across
- 1. This exponent code what, and we might want to use it in other parts of our code
- 5. These are written by what made efficient and rigorously tested, and then given to everyone.
- 6. A function that calls a function! And then we can use this function in an even more what function
- 8. Software consists of what of smaller functions, each responsible for different features
- 9. In modern programming, it’s what to see functions longer than around 100 lines of code, because by then, there’s probably something that should be pulled out and made into its own function.
- 12. Now we can use this function anywhere in our program, simply by what and passing in two numbers.
- 15. In the real world, programmers aren’t wasting time writing things like exponents. Modern programming languages come with huge bundles of what, called Libraries
- 16. There are libraries for almost everything, including networking, graphics, and sound -- topics we’ll discuss in future episodes. But before we get to those, we need to talk about what
- 17. To compartmentalize and hide complexity, programming languages can package pieces of code into what, also called methods or subroutines in different programming languages.
- 18. We what all the internal loops and variables, we just see the result come back as if by magic…But it’s not magic, it’s the power of abstraction
Down
- 2. If you understand this example, then you understand the power of functions, and the entire what of modern programming.
- 3. Finally, we need to send the result of our exponent code back to the part of the program that what
- 4. Behind the scenes, 2 and 44 get saved into variables Base and Exp inside the function, it does all it what, and then the function returns with the result.
- 7. What we want is a what up our exponent code so we can use it, get the result, and not have to see all the internal complexity
- 10. For this, we use a,what and specify that the value in ‘result’ be returned.
- 11. When we call a single line of code, like this the complexity is what
- 13. Yes, a _____ that calls a function! And then we can use this function in an even more complex function.
- 14. The rest of our code is the what,now tucked into our function and with new variable names