Westonci.ca is the ultimate Q&A platform, offering detailed and reliable answers from a knowledgeable community. Experience the convenience of getting accurate answers to your questions from a dedicated community of professionals. Get precise and detailed answers to your questions from a knowledgeable community of experts on our Q&A platform.

Write a program that takes the radius of a sphere (a floating-point number) as input and then outputs the sphere’s: Diameter (2 × radius) Circumference (diameter × π) Surface area (4 × π × radius2) Volume (4/3 × π × radius3) For convenience, the program can import the math module. Below is an example of the program input and output: Radius = 5 Diameter : 10.0 Circumference: 31.41592653589793 Surface area : 314.1592653589793 Volume : 523.5987755982989

Sagot :

A program that takes the radius of a sphere (a floating-point number) as input and then outputs the parameter of the spheres is given below:

The Code

from math import pi

r = radius

radius = int(input("Radius = "))

print (float("Diameter : " + int(input(float(2 * radius))))

radius = int(input("Radius = "))

diameter = <...calculate diameter...>

print('Diameter =', diameter)

Read more about programming here:

https://brainly.com/question/23275071

#SPJ1