0% found this document useful (0 votes)
5 views3 pages

Python Programs for Area and Volume Calculations

The document contains Python programs for calculating various geometric properties. It includes programs to find the area of a triangular plot, the total surface area of a cuboid, the volume of a sphere, and the curved surface area of a cylinder. Each program accepts user input for relevant dimensions and displays the calculated results.

Uploaded by

diyaprajeesh1
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views3 pages

Python Programs for Area and Volume Calculations

The document contains Python programs for calculating various geometric properties. It includes programs to find the area of a triangular plot, the total surface area of a cuboid, the volume of a sphere, and the curved surface area of a cylinder. Each program accepts user input for relevant dimensions and displays the calculated results.

Uploaded by

diyaprajeesh1
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

1.

Write a python program to find the following by accepting the input values from the
user for the following problem.

To find the Area of a Triangular plot with base and height.

Formula=

(Note: Apply Integer input and display area, base and height)

EXPECTED OUTPUT –
2. Write a python program to find the Total Surface area of sheet required to wrap the box
which is in the form of a Cuboid by accepting length, width and height of the box.

CODING -
l=float(input("enter the lenght of the cuboid"))
w=float(input("enter the width of the cuboid"))
h=float(input("enter the height of the cuboid"))
volume= 2*(l*w + w*h + h*l)
print("the lenght of the cuboid is=",l)
print("the width of the cuboid is=",w)
print("the height of the cuboid is=",h)
print("the volume of the cuboid is=",volume)

3. .Write a python program to find the Volume of sphere by accepting the radius by using
python operators .Formula is given below.

(Note :Apply float input and display Radius and volume of the sphere)
4. Write a python program to find the Curved surface area of cylinder by accepting the height
and radius of cylinder .Formula is given below.

(Note :Apply float input and display Radius and height,Curved surface Area(CSA))

CODING -

height=float(input("Enter the height of the cylinder: "))


radius=float(input("Enter the radius of the cylinder: "))
CSA=2*3.14*radius*height
print("the height of the cylinder=",height)
print("the radius of the cylinder=",radius)
print("Curve surface area of the cylinder=",CSA)

You might also like