// PROGRAM ID: sphereExample.cpp / A program that uses the class sphereClass #include #include "sphereClass.h" using namespace std; int main( ) { sphereClass MySphere(5.1); // radius is 5.1 sphereClass UnitSphere; // radius is 1.0 cout << "Displaying unit sphere values:"; UnitSphere.DisplayStatistics(); cout << endl << endl; cout << "Displaying MySphere (radius 5.1) values:"; UnitSphere.DisplayStatistics(); cout << endl << endl; MySphere.SetRadius(4.2); // resets radius to 4.2 cout << "Displaying MySphere (radius 4.2) diameter:" << endl; cout << MySphere.Diameter() << endl; cout << endl << endl; return 0; } // end main