jackelynbenavides842 jackelynbenavides842
  • 15-07-2022
  • Computers and Technology
contestada

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)

Respuesta :

MrRoyal
MrRoyal MrRoyal
  • 16-07-2022

The program is an illustration of a sequential program.

Sequential programs are programs that do not require conditions

The program

The program written in Python is as follows:

radius = float(input("Radius: "))

diameter = 2 * radius

circumference = diameter * 3.14

surfaceArea = 4 * 3.14 * radius**2

volume = (4.0/3) * 3.14 * radius**3

print(diameter)

print(circumference)

print(surfaceArea)

print(volume)

Read more about Python programs at:

https://brainly.com/question/13246781


#SPJ1

Answer Link

Otras preguntas

A CD makes 58 1/2 revolutions in 3/4 min. Complete the unit rate. ______revolutions/min
how do you write the scientific notation of 230
A basketball game starts with a jump ball in the middle of the court with a circle that has an area of 113.04 square feet. What is the radius of the circle?
So he set to work fabricating wings for himself and his young son Icarus, with the intention of changing the laws of nature. Which word best replaces fabricatin
x+4y=2v make x the subject
what is the SI unit for acceleration?
If 25 is 40% of a value, what is that value?
which is the side length of a cube with a volume of 125 m3 A.125³m B √125 m C.³√5 m D ³√125 m
what is 4L 710mL - 2L 690 mL
The Open Door Policy was designed as a way for the United States to further options: 1) its trade interests. 2) its desires to annex foreign nations. 3) interna