Discover the answers you need at Westonci.ca, where experts provide clear and concise information on various topics. Explore in-depth answers to your questions from a knowledgeable community of experts across different fields. Get quick and reliable solutions to your questions from a community of experienced experts on our 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