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 event is a direct cause of the situation shown in the photograph above? (5 points) Detente OPEC embargo Yom Kippur War Whip Inflation Now
What impact did the french revolution have on the start of the haitian revolution?
The volume of a trapezoidal prism is 750. the depth is 10 and the height is 5. if one base is 50% larger than the other base, what is the size of the larger bas
What does it mean to be an informed consumer?
name 2 ways to reduce the act of trash going into landfills
The slope of a line that is horizontal, such as is -5 is ______?. A. 0 B. negative C. positive D. undefined
Read the sentence. I never eat cookies with raisins. Which identifies the type of phrase represented by the underlined text? adverb phrase noun phrase appositiv
Please help... thanks Solve for x: −3|2x + 6| = −12 x = 1 and x = 5 x = −1 and x = −5 x = −9 and x = 3 No solution
Which are strong arguments in favor of a jury system? Select all that apply. (2 correct choices) A) The jury system saves the states money and time B) Juries pr
What connotative sense does the word "nibble" carry??