5.5 Caesar Cipher App Curriculum Page
Answer the following questions:
1. Insert 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
A function is a procedure, that returns a value/result. An example of this is the Encrypt and Decrypt of the Caesar Cipher App.
3. Explain the difference between global and local variables. Why are local variables easier to debug than global variables?
Answer
Global Variables effect the whole code, while local variables only affect the code in that function. Local Variables are easier to debug because They only affect that singular function, and if you mess up, it can be fixed easier, while the global variable would be harder to fix because it would affect every code.