Answer in Python:
<em># Define program constants</em>
PI = 3.14
<em># Welcome the user to our program</em>
print("### Welcome to the Sphere Volume Calculator")
<em># Ask for the Radius (r) input and store it as a float</em>
radius = float(input("Type the Radius of your sphere in meters: "))
<em># Calculate the volume</em>
volume = 4 / 3 * PI * radius ** 3
<em># Print the result</em>
print("Your sphere volume is:", volume, "m³")
References:
- https://www.w3schools.com/python/python_variables.asp
- https://www.w3schools.com/python/python_casting.asp
- https://www.w3schools.com/python/python_user_input.asp
- https://www.w3schools.com/python/python_operators.asp
- https://www.w3schools.com/python/ref_func_print.asp