Skrilov Ihor - portfolio
mechanical engineer
Wednesday, June 21, 2023
Cylinder volume calculate program
Code of program
:
import math
print("calculate cylinder volume")
r=input("r=")
r=float(r)
h=input("h=")
h=float(h)
volume=math.pi*(r**2)*h
print("volume=")
print(volume)
Ring area calculate program
Code of program
:
import math
print("calculate ring area")
R=input("R=")
R=float(R)
r=input("r=")
r=float(r)
area=math.pi*((R**2)-(r**2))
print("area=")
print(area)
Ellipse area calculate program
Code of program
:
import math
print("calculate ellipse area")
a=input("first radius a=")
a=float(a)
b=input("second radius b=")
b=float(b)
area=a*b*math.pi
print("area=")
print(area)
Tuesday, June 20, 2023
Circle area calculate program
Code of program
:
import math
print("Calculate circle area")
d=input("diameter of a circle d=")
d=float(d)
area=math.pi*d*d/4
print("area=")
print(area)
Sunday, June 18, 2023
Trapezoid area calculate program
Code of program
:
print("Calculate trapezoid area")
a=input("side a=")
a=float(a)
b=input("side b=")
b=float(b)
h=input("height of trapezoid h=")
h=float(h)
area=(a+b)*h/2
print("trapezoid area=")
print(area)
Triangle area calculate program by one side and perpendicular height for this side
Code of program
:
print("Calculate an area of a triangle by side and perpendicular height")
a=input("side a=")
a=float(a)
h=input("height h=")
h=float(h)
area=(a*h)/2
print("area=")
print(area)
Parallelogram area calculate program
Code of program
:
print("Calculate an area of a parallelogram")
a=input("a=")
a=float(a)
b=input("b=")
b=float(b)
area=a*b
print("area=")
print(area)
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)
Exercises from book "Autodesk Inventor exercises" by Bob McFarlane. E Pattern features
Flange - 2D draft and views of 3D model from a book "100 CAD exercises. Beginners guide by 12CAD.com"
There is a draft or 2D sketch: And there are two views of a 3D model: 3D model have been created by author of article.
Square area calculate program
Code of program : print("Calculate an area of a square") a=input("a=") a=float(a) area=a*a print("area=") prin...
Crossbar
This crossbar need to fix in ground verticaly with elongated сolumns. Material of construction is mild steel.