This task is a text-based task. You do not need to write any program/C++ file: the answer should be written in functions.cpp.
Consider the functions implemented in functions.cpp
. For each function, add proper pre- and post-conditions.
- If no pre-condition is needed, you can simply write "n/a".
- The post-condition does not have to be a mathematical formula, e.g. it can be an informal description, but it must completely characterize the results and effects of the functions depending on the provided parameters.
Note: For the purposes of this task, you can ignore overflows.