Question: Now create a new project and name it LAB1B. Make sure you close your previous program by clicking File >> Close Solution. Step 2: Type

Now create a new project and name it LAB1B. Make sure you close your previous program by clicking File >> Close Solution. Step 2: Type in Program Like before, enter the following program. Type in your name for Developer and current date for Date Written. This program has three errors. // --------------------------------------------------------------- // Programming Assignment: LAB1B // Developer: ______________________ // Date Written: ______________________ // Purpose: Average Program // --------------------------------------------------------------- #include using namespace std; void main() { cout << "Find the Average Program "; double num1, num2, num3, average; cout << "Please enter number 1: "; cin >> num1; cout << "Please enter number 2: " cin << num2; cout << "Please enter number 3: "; cin >> num3; average = num1 + num2 + num3 / 3; cout << "The average is: " << average << endl; system("pause"); } When you build the solution you will see the debugger. Double click on an error to locate the error. If it is a syntax error, the error will be listed in the error list. Some errors will be underlined in red. Once you fix the syntax errors, use the F11 (step into code) and F10 (step over code) commands to locate the logic error in the code. Step 3: Save Program Save your program by clicking File on the menu bar and then clicking Save Program.cpp, or by clicking the Save button on the toolbar, or Ctrl + S. Step 4: Build Solution To compile the program, click Build on the menu bar, and then click the Build Solution or Build LabB option. You should receive no error messages. If you see some error messages, check the code above to make sure you didn't key in something wrong. Once you make your corrections to the code, go ahead and click Build >> Build Solution again. Step 5: Execute the Program Once you have no syntax errors, to execute or run your program, click Debug on the menu bar, and then click Start Without Debugging. Step 6: Capture the Output 1. Capture a screen print of your output. (Do a PRINT SCREEN and paste into the Word document from Part A.) 2. Copy your code and paste it into the same MS Word document that contains the screen print of your output. 3. List all three errors. 4. Save this in the same Word document as Part JA.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!