// Calculate the volume of a planet // Include the Radius at run-time via cin operator #include using namespace std; double r; char planet; double rcubed; float pi = 3.1415; // probably better to make this a double, as in double pi = 3.1415; int main() { cout << "What is the name of your planet? "; cin >> planet; cout << "Please type the radius of for Planet" << planet; cin >> r; // corrected line below The volume of " cout << "The volume of " << planet << "with a radius of" << r << "in cubic feet is: "; rcubed = r * r * r; cout << ((4/3) * pi) * rcubed; cout << endl; }