subject

Given the following code:

class Circle
{
private:
double radius;
public:
Circle();
Circle(double);
double getRadius();
void setRadius(double);
};

Circle::Circle()
{
radius = 0;
}

Circle::Circle(double rad)
{
radius = rad;
}

double Circle::getRadius()
{
return radius;
}

void Circle::setRadius(double r)
{
radius = r;
}

int main()
{
const int SIZE = 10;
Circle myCircles[SIZE];

// Add code here!!!

return 0;
}
Write the code in the main that would first have the user initialize the radii of the array of circles, then print out the diameter (i. e. twice the radius) of the array of circles

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 09:00
Designing a mobile web page is a little different from designing a regular web page. name at least three features that should be considered when designing a website that is mobile phone-friendly, and briefly explain why they are important.
Answers: 1
question
Computers and Technology, 22.06.2019 09:30
My mom and i are moving and we don’t have wifi for the next week, i want to know if using a using a hotspot with unlimited data is better than using regular wifi. i’m considering cost, speed, and data sacrifices.
Answers: 1
question
Computers and Technology, 23.06.2019 13:30
Font size, font style, and are all aspects of character formatting.
Answers: 2
question
Computers and Technology, 24.06.2019 14:00
Text or graphics that print at the bottom of every page are called footings footers headers headings
Answers: 1
You know the right answer?
Given the following code:

class Circle
{
private:
double radius;
...
Questions
question
Biology, 08.07.2019 08:30