Computer Science, asked by ttorphic, 17 hours ago

Cam someone answer one of these questions please and no scam, I'll make you a brainlist , just answer one of these questions

Attachments:

Answers

Answered by Anonymous
1

Answer:

Hope it helps you.

Explanation:

PI = 3.14

radius = float(input('Please Enter the Radius of a Sphere: '))

sa = 4 * PI * radius * radius

Volume = (4 / 3) * PI * radius * radius * radius

print("\n The Surface area of a Sphere = %.2f" %sa)

print("\n The Volume of a Sphere = %.2f" %Volume)

Answered by navanithishere
0

Answer:

Explanation:

1) PROGRAM:1

radius=float(input("Enter the value:"))  #Accept user input

pie=3.14285714286                                    #Assign pie value

volume=(4.0/3.0)*pie*(radius*radius*radius)  #To find volume

print("volume of the sphere="+str(volume))  #Print the volume

ALGORITHM:

Define the radius of the sphere

Define the pie Calculate the volume of the sphere using formula (4/3)*pie*r3Print the volume of the sphere.

Volume= (4/3)*pie*r3

2)PROGRAM:2

Name=input("Enter the name:")  

Height=float(input("Enter the height:"))

if Name=="jakson" and Height==5.9:

   print("He is my friend")

else:

   print("He is not my friend")

Explanation: Algorithm

Define the radius of the sphere

  1. Define the name and height
  2. Check the condition using if-else loop
  3. Print the output

Attachments:
Similar questions