Answer:
b. After each calculation within your program, insert a temporary statement that displays the most recently calculated value. When running your program, compare the displayed values with the expected values to identify where in the program the error is being introduced.
Explanation:
Logging statements are an effective debugging technique. It is a good way of finding the location of faulty logic in a program.
One can trace the root problem through logging intermediary outputs.
We can find out from where the program is producing unexpected or unintended calculations, when their's a weird output logged.