6.5 Caesar Cipher App Curriculum Page
Portfolio Reflection Questions:
- Post a screenshot of your code for the caesarDecrypt function.
- Explain the difference between a function and a procedure. Give an example of a function.
- The difference between a function and a procedure is that a function is a procedure that returns a value (result slot). A procedure just carries out an algorithm, but doesn't give a result. An example of a function is the encryption/decryption function in the Caesar Cypher app because after the procedure is run through, it results an encrypted/decrypted message to the user.
- Explain the difference between global and local variables. Why are local variables easier to debug than global variables?
- The difference between global and local variables is that global variables can be used throughout all of the program's code. Local variables can only be used and defined within a specific block. It is easier to debug local variables rather than global variables because they are only used within one block, not all of the code.