devadharsansajeev514
devadharsansajeev514 devadharsansajeev514
  • 25-09-2021
  • Computers and Technology
contestada

Define a class Sphere to input radius of a sphere and compute the volume of it. Volume = πr3 (where π=3.14)​

Respuesta :

Аноним Аноним
  • 25-09-2021

Lets use Python

Program:-

[tex]\tt r=(float(input("Enter\:the\:radius\:of\:Sphere=")))[/tex]

[tex]\tt V=4/3*3.14*r**3[/tex]

[tex]\tt print("Volume\:of\:the\:sphere=",V)[/tex]

Output:-

[tex]\tt Enter\:the\:radius\:of\:the\:sphere=3[/tex]

[tex]\t Volume\:of\:the\:Sphere=103.4[/tex]

Answer Link

Otras preguntas

What type of arc lies between the two sides of a central angle and measures less than 180? A. Major Arc B. Minor Arc C. Semicircle
Use the quadratic function to predict f(x) if x equals 2 A. f(2)=125B. f(2)=87C. f(2)=111D. f(2)=63
Land containing a mine having an estimated 1,000,000 tons of economically extractable ore is purchased for $375,000. after the ore deposit is removed, the land
help me please i really dont understand
write and,or,but to complete each sentence.HERE IS A PICTURE OF IT IF YOU DON'T UNDERSTAND IT.THIS IS WORTH 28 POINTS☺
"the label which indicates that a substance is dissolved in water solution is"
Which are vascular plants? A. ferns and seed plants B. mosses and seed plants C. seed plants and mycorrhiza D. ferns and mycorrhiza
Convert 0.18 to a percent
What is shown in the image below?
The most productive farmland in the region is _____. Asia Minor Anatolia Dasht-e Kavir Fertile Crescent