Comments give notes to the reader to explain what your code is doing. Two types of comments that can utilized are preconditions and postconditions. Preconditions are assumptions we make about what is true before a function is called in our program. Postconditions are what should be true after a function is called in our program.
Students will be able to…
* Explain the preconditions and postconditions of a function
* Create clear and readable comments in their code that help the reader understand the code
* Explain the purpose of comments
These are all the activities included in the lesson