A) class Circle: { private double centerX; double centerY; double radius; public setCenter(double, double); setRadius(double); } B) #include using namespace std; Class Moon; { Private; double...



A) class Circle:


{



private


double centerX;


double centerY;


double radius;



public


setCenter(double, double);


setRadius(double);


}


B) #include


using namespace std;


Class Moon;


{



Private;


double earthWeight;


double moonWeight;



Public;


moonWeight(double ew);// Constructor



{ earthWeight = ew; moonWeight = earthWeight / 6; }


double getMoonWeight();



{ return moonWeight; }


}


int main()


{


double earth;


cout >> "What is your weight? ";


cin


Moon lunar(earth);


cout <>




return 0;


}



May 26, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here