Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

download the attached file/s, copy and paste the code segment/s into your visual studio or any other C++ IDE and run it. You will have

download the attached file/s, copy and paste the code segment/s into your visual studio or any other C++ IDE and run it. You will have to implement a small intentional bug in your program and post it for other students to debug.

To be able to receive your full discussion points, you need to submit the following.

Following is your check list and rubric

Attach your .cpp file/s with an implemented bug - 20pnts

Describe what the code does in detail - 20pnts

Debug at least one other program and submit your .cpp file - 40pnts (note what the bug was in comments)

After running the debugged program, attach the screen shot of your output- 20pnts // This program calculates the area of a circle. // The formula for the area of a circle is Pi times // the radius squared. Pi is 3.14159. #include #include // needed for pow function using namespace std; int main() { const double PI = 3.14159; double area, radius; cout << "This program calculates the area of a circle. "; cout << "What is the radius of the circle? "; cin >> radius; area = PI * pow(radius, 2.0); cout << "The area is " << area << endl; return 0;

} before answering the question, please answer in details , like explain the code in details , debug anther program. thanks

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions