Call us 24/7: + 1(925)399 0085

Get your paper done by an expert

No matter what kind of academic paper you need, it is simple and secure to hire an essay writer for a price you can afford at StudyAcer. Save more time for yourself.

WhatsApp + 1(925)399 0085
$ 10
free
  • bibliography
  • title page
  • revisions
per page
19 k happy customers
4.7 out of 5 satisfaction rate
27 writers active

Write a simple class named circle, with a single instance variable: a double named x, y and radius. Use GUI…

Write a simple class named circle, with a single instance variable: a double named x, y and radius. Use GUI components to read any input used to initialize your circles (x, y, r). Your class should have member functions with the following signatures.

  1. void setRadius(double r)
  2. void setX(double value)
  3. void setY(double value)
  4. double getRadius()
  5. double getX()
  6. double getY()
  7. double getArea()
  8. bool containsPoint(double xValue, double yValue)

When you are calculating the area you can use 3.14 for pi. The formula will be radius * radius * 3.14.

You can determine whether or not a point is in a circle by calculating the distance from the center of the circle (its x and y coordinates) to the point.  If this distance is less than or equal to the radius then the point is inside the circle. (calculate distance between two points)

Write a main function that tests your class. It should instantiate a number of circle objects with different radius values. It should report any results using GUI components.  You should test all three member functions until you are confident that they work.  For practice, make sure you try each of the following:

  1. Create a local circle object and set its x, y, and radius. Verify that it’s area is calculated correctly.
  2. Create a circle reference variable, and point it at a dynamically instantiated circle. Use the pointer to set it’s x, y, and radius values
  3. Create a local array of three circles. Test the member functions on one of the elements.
  4. Dynamically instantiate an array of three circles. Test the member functions on one of the elements.

Our guarantees

Study Acers provides students with tutoring and help them save time, and excel in their courses. Students LOVE us!No matter what kind of essay paper you need, it is simple and secure to hire an essay writer for a price you can afford at StudyAcers. Save more time for yourself. Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Read more

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Read more

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Read more

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Read more

Our Homework Writing Disciplines

With a highly diverse team in almost all academic fields including:


Warning: Invalid argument supplied for foreach() in /home/acemfljg/public_html/wp-content/themes/essay-writing/footer.php on line 12