Respuesta :

Answer in Python:

# Define program constants

PI = 3.14

# Welcome the user to our program

print("### Welcome to the Sphere Volume Calculator")

# Ask for the Radius (r) input and store it as a float

radius = float(input("Type the Radius of your sphere in meters: "))

# Calculate the volume

volume = 4 / 3 * PI * radius ** 3

# Print the result

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