Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

i need code using C++Class/ OOP(object-oriented program). please use class CIRCLE. use public and private member. as shown in second image. constructor and deconstructor. Write

i need code using C++Class/ OOP(object-oriented program). please use class CIRCLE. use public and private member. as shown in second image. constructor and deconstructor. image text in transcribed
image text in transcribed
Write solution for a problem following. Xz and y, are the x,y coordinates for one point x, and y, are the x,y coordinates for the second point, d is the distance between the two points. d= (x2 - x2)2 + ( Y2 - y2)2 y . (X2, Y2) (X, Y), Create a function that will calculate the distance between to points on the Cartesian Plane. Create a function that will find the circumference of a circle that uses the distance function as the radius. Create a function that will find the area of a circle that uses the distance function as the radius The program should input the x and y values of the two points. The should then call distance function to return the radius of the circle. Then the area and circumference function to return the area and circumference of the circle. A File Search Visual Studio (Ctrl Edit View Project Build Debug Test Analyze Tools Debug - 86 Extensions Window Help Local Windows Debugger (Global Scope) Explore Toote weekcass2000.cpp! X weekcossop 4 #include 5 | using namespace std; 6 class circle { 7 public: 8 1/ x1 yi and X2 y2 doubles 9 // set and get xl yl and x2 y2 10 7/ member return and calculate the radius 11 y member return A and p of the circle 12 private: 13 //variables xi yi and x2 y2 }; 15 16 17 18 14 ONE how to

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

Recommended Textbook for

Oracle Solaris 11.2 System Administration (oracle Press)

Authors: Harry Foxwell

1st Edition

007184421X, 9780071844215

More Books

Students also viewed these Databases questions

Question

Describe the Indian constitution and political system.

Answered: 1 week ago

Question

Explain in detail the developing and developed economy of India

Answered: 1 week ago

Question

Problem: Evaluate the integral: I = X 52+7 - 1)(x+2) dx

Answered: 1 week ago

Question

What is gravity?

Answered: 1 week ago

Question

What is the Big Bang Theory?

Answered: 1 week ago