Answer:
The code to this question can be defined as follows:
sphereVolume = (4.0/3.0)*piVal*sphereRadius*sphereRadius*sphereRadius; // defining a double variable sphereVolume that calculate and hold its value
Explanation:
Please find the complete code in the attachment file.
In the code, a class "SphereVolumeCalculator" is declared, and inside the main method Three double variable "piVal, sphereRadius, and sphereVolume" , in which "piVal" is used to hold a value, in the next step scanner class object is created for holding the "shereRadius" value and the sphereVolume is used for calculate and print its value.