Sunday, June 18, 2023

Rectangle area calculate program

Code of program:

print("Calculate an area of a rectangle")
a=input("a=")
a=float(a)
b=input("b=")
b=float(b)
area=a*b
print("area=")
print(area)

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=")
print(area)

Repeating text program in Python 3

Code of program 1:

for i in range (1, 5):
    print ("repeating text")

Code of program 2:

a=input("a=")
a=int(a)
b=input("b=")
b=int(b)
for i in range (a, b):
    print ("repeating text")

Program to display integer numbers from "started" number to "finished" number

i=input("define a number from its start \n")
i=int(i)
a=input("define a number to the end \n")
a=int(a)
print("Start of a program")
while i<=a:
    print(i);
    i+=1
print("The end of a program")

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");

Tuesday, January 31, 2023

Metal box

 This metal box can be produced by bending sheet metal from flat patterns, manualy assembled and fastened together with screws and nuts.













Sunday, January 22, 2023

Crossbar

 This crossbar need to fix in ground verticaly with elongated сolumns. 

 Material of construction is  mild steel.