CS
210 – Fundamentals of Programming I
Spring 2007 – In-class
Exercise for 2/8/07 & 2/12/07, Part B
Name(s):
(10 points) Complete this exercise in pairs. Today's in-class exercise is to continue using the Integrated Debugger.
0. Create a Visual C++ project on your network drive. DO NOT create a source file. Download a copy of inclass11.cpp from the course website under today's date into your project folder. Add the file to your project.
1. (5 points) Using the Integrated Debugger to step through this program, find and correct the 5 bugs that are in this program.
2. (5 points) Answer the following questions about the debugger:
a. What is the difference between Step Over and Step Into?
b. How would you add a breakpoint at the line if ((choice == 'D') || (choice == 'd')) in the main program?
c. How would you remove this breakpoint?
d. How would you add a watch on the expression amount > balance in function Withdrawal?
e. How would you remove this watch?
When you are finished with this exercise, print out your corrected program and turn it in with this sheet.
02/07/07