This lab is due by Friday, February 18, 2022, 11:59 PM.
As with all labs you may, and are encouraged, to pair program a solution to this lab. If you choose to pair program a solution, be sure that you individually understand how to generate the correct solution.
To gain more practice with debugging, as well as provide experience tracing functions, you're given a starter program.
Your task for this lab is to use the debugger to investigate the call stack. This will become a useful tool as we move towards more complex operations that result in runtime errors.
Instructions
Create a new folder and call it L2D. Once you have your empty folder, open L2D_starter.zip and copy the contents to your folder. .
There are two main tasks outlined in the README.
- Refactor the code to add function prototypes above
main()
with the function definitions implemented belowmain()
. - Use the debugger to add a breakpoint and investigate the call stack as you move through the function calls.
Lab Submission
Submit your main.cpp, Makefile, README.txt
file(s).
You will submit your solution to this lab with the rest of Set2. Detailed instructions for doing this are posted in Assignment 2.
This lab is due by Friday, February 18, 2022, 11:59 PM.
As with all labs you may, and are encouraged, to pair program a solution to this lab. If you choose to pair program a solution, be sure that you individually understand how to generate the correct solution.