Question
Step 1: Remove average.cpp from the project and add findErrors.cpp to the project. Here is a copy of the source code. 1 // findErrors.cpp 2
Step 1: Remove average.cpp from the project and add findErrors.cpp to the project. Here is a copy of the source code.
1 // findErrors.cpp 2 // This program has one syntax error and one logic error. Find and fix them. 3 // PUT YOUR NAME HERE. 4 #include
Step 2: Put your name on line 3. Then compile the program. It contains one syntax error and one logic error.
Step 3: Use the compiler error message to help you locate the syntax error and fix it.
Step 4: Once the program compiles with no errors, run the program, and examine the output. Analyze what is going wrong so you can find and fix the logic error in the program. Once you have it running correctly the output should look like the following:
Enter room length (in feet): 15
Enter room width (in feet): 10
The area of the room is 150 square feet.
Step 5: Follow the instructions your professor gives you to print the final, correct findErrors.cpp source code and the output the program displays when it runs.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started