/******************************************************************** * File: Chap_5_Debugging.cpp * * General Instructions: Complete each step before proceeding to the * next. * * CST 116, Edward Fine, Lab0, debugging * * Debugging Exercise 1 * * 1) On the lines indicated in the code below, insert a breakpoint. * 2) With the program not in debugging mode, start debugging by * using the "Step Into" tool. * 3) Click on the Watch1 tab. * 4) With the cursor in the Name column type money and press enter. * This adds a programmer defined watch on the variable money. * 5) Step Into until you reach the first cout statement. With * the current line being that cout statement, Step Into again. * 6) What happened? Where are we now? What is all of this nasty * looking code? * So far, all I can see is that the money has been assigned its value of 123.45 * and in the console it simply says "You have $". I don't see any messy code * after stepping into cout< #include using std::cout; using std::cin; using std::endl; int main() { float money = 123.45F; float raise; cout << "You have $"; cout << money << endl; // Breakpoint 1 // Put a breakpoint on the following line cout << "Enter percent raise (in decimal form): "; cin >> raise; raise = raise * money; money = money + raise; cout << "After your raise you have $"; cout << money << endl; return 0; }