1. Post a screenshot of your code for the caesarDecrypt function.
2. Explain the difference between a function and a procedure. Give an example of a function.
Answer
The difference between a function and a procedure is that a function returns a value whereas a procedure does not. For instance, and example of a simple function would be an equation with a variable such as 2x=y, where y is the returned value.
3. Explain the difference between global and local variables. Why are local variables easier to debug than global variables?
Answer
The difference between global and local variables is that local variables exist only in one segment of code whereas global variables exist throughout the entire program. Local variables are easier to debug than global variables because it is only necessary to analyze and check one segment of code, the one that the local variable exists in, as opposed to the entirety of a program’s code.