## Instructions

**Objective**

## Requirements and Specifications

**Source Code
**

#include

// Define the value of PI

#define PI 3.14159265358979323846

class Circle {

private:

double radius;

public:

// Constructor with no arguments

Circle() {

// Initializes the radius to 2.0

radius = 2.0;

}

// Constrcutor that accepts the radius as argument

Circle(double r) {

radius = r;

}

// Getter and Setter for radius

double getRadius() {

return radius;

}

void setRadius(double r) {

radius = r;

}

// method to calculate area

double getArea() {

// returns pi*radius^2

return PI*getRadius()*getRadius();

}

// method to print the area

void printArea() {

// Calculate area

double area = getArea();

std::cout << "The area of the Circle with radius " << getRadius() << " (u) is: " << getArea() << " (u^2)" << std::endl;

}

};