Wednesday, June 21, 2023
Cube volume calculate program
Cylinder volume calculate program
Ring area calculate program
Ellipse area calculate program
Tuesday, June 20, 2023
Circle area calculate program
Sunday, June 18, 2023
Trapezoid area calculate program
Triangle area calculate program by one side and perpendicular height for this side
Parallelogram area calculate program
Rectangle area calculate program
Square area calculate program
Repeating text program in Python 3
Program to display integer numbers from "started" number to "finished" number
Coding the program with list of different calculates in Pydroid 3 application
A part of a code of the program that works in Pydroid 3. Language of the code is python 3.6.
A code is placed below:
print("Running a program of calculating axial moments of inertia, moments of resistance and inertia radii of flat figures.");
print("Type a number to choose a figure: \n 1 - circle \n 2 - ring \n 3 - thin ring \n 4 - half of circle \n 5 - circle segment \n 6 - circle sector \n 7 - circle half of ring \n 8 - sector of circle ring \n 9 - profile with symmetrical rounding \n 10 - ellipse \n 11 - square \n 12 - hollow square \n 13 - hollow thin-walled square \n 14 - square placed on the edge \n 15 - hollow square placed on the edge \n 16 - rectangle \n 17 - rectangle rotated \n 18 - hollow rectangle \n 19 - hollow thin-walled rectangle \n 20 - cross section of two equal rectangles \n 21 - triangle \n 22 - triangle placed on the edge \n 23 - trapezoid \n 24 - taurus \n 25 - trough section \n 26 - cross section \n 27 - regular hexagon \n 28 - regular octagon \n ");
A=input("Type a number of a figure \n");
print("\n");
if A=="1":
print("formulas for a circle.");
else:
if A=="2":
print("formulas for a ring.");
else:
if A=="3":
print("formulas for a thin ring.");
else:
if A=="4":
print("formulas for a half of circle");
else:
if A=="5":
print("formulas of a circle segment");
else:
if A=="6":
print("formulas for a circle sector");
else:
if A=="7":
print("circle half of ring");
else:
if A=="8":
print("formulas of a sector of circle ring");
else:
if A=="9":
print("formulas of a profile with symmetrical rounding");
else:
if A=="10":
print("formulas of an ellipse");
else:
if A=="11":
print("formulas of a square");
else:
if A=="12":
print("formulas of a hollow square");
else:
if A=="13":
print("formulas of a hollow thin-walled square");
else:
if A=="14":
print("formulas of a square placed on the edge");
else:
if A=="15":
print("formulas of a hollow square placed on the edge");
else:
if A=="16":
print("formulas of a rectangle");
else:
if A=="17":
print("formulas of a rectangle rotated");
else:
if A=="18":
print("formulas of a hollow rectangle");
else:
if A=="19":
print("formulas of a hollow thin-walled rectangle");
else:
if A=="20":
print("formulas of a cross section of two equal rectangles");
else:
if A=="21":
print("formulas of a triangle");
else:
if A=="22":
print("formulas of a triangle placed on the edge");
else:
if A=="23":
print("formulas of a trapezoid");
else:
if A=="24":
print("formulas of a taurus");
else:
if A=="25":
print("formulas of a trough section");
else:
if A=="26":
print("formulas of a cross section");
else:
if A=="27":
print("formulas of a regular hexagon");
else:
if A=="28":
print("formulas of a regular octagon");
else:
print("end of the program");