@SushaanPatel/

# APVS Calculator

## Done

Files
• main.py
• Edit.py
• False Edit
main.py
```1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
```
```# Welcome to the APSV Calculator

print ("\nIf dont want One of the options enter Values as 0 and dont \nconsider the option\n\n")

z=str(input("1.Area & Peri=a\n2.Volume & Surface Area=v\n"))

if z=='a':
x=str(input("Choose\nSquare=s\nRectangle=r\nTriangle=tri\nCircle=c\nTrapizoid=t\nParallelogram=p\nRhombus=rh\n"))
if x=='s':
l=float(input("type side length\n"))
i=l*l
a=l*4
b = 0
h = 0
x = 0
#g = 0

elif x=='r':
l=float(input("type length\n"))
i=l*b
a=2*(l+b)
h = 0
x = 0
g = 0
r = 0
elif x=='c':
i=3.1415*h*h
a=2*3.1415*h
l = 0
b = 0
x = 0
g = 0
r = 0
elif x=='tri':
l=float(input("Enter base(For Area)\n"))
b=float(input("enter height(For Area)\n"))
h=float(input("Enter side 1(For Peri)\n"))
r=float(input("Enter side 2(For Peri)\n"))
i=(l*b)/2
a=l+h+b
x = 0
g = 0
elif x=='t':
l=float(input("Enter parallel side 1(For Area)\n"))
b=float(input("Enter parallel side 2(For Area)\n"))
h=float(input("Enter Height\n"))
r=float(input("Enter side 3(For Peri)\n"))
g=float(input("Enter side 4(For Peri)\n"))
i=1*(l+b)*h/2
a=l+b+g+r
x = 0
elif x=='p':
l=float(input("Enter base\n"))
h=float(input("Enter Height\n"))
i=l*h
a=2*(l+h)
b = 0
x = 0
g = 0
r = 0
elif x=='rh':
l=float(input("Enter Diagonal line 1(For Area)\n"))
b=float(input("Enter Diagonal line 2(For Area)\n"))
h=float(input("Enter Side lenght(For Peri)\n"))
i= (l*b)/2
a=h*4
h = 0
x = 0
g = 0
r = 0
print ("Area=",i)
print ("Peri=",a)

elif z=='v':
y=str(input("Choose\n1.Cube=cb\n2.Cubiod=b\n3.Cylinder=d\n4.Sphere=sp\n5. Triangular prism=tp"))
if y=='cb':
l=float(input("Enter side Length\n"))
a=l*l*l
i=6*l*l
b = 0
h = 0
x = 0
g = 0
r = 0
elif y=='b':
l=float(input("Enter Length\n"))
h=float(input("Enter Height\n"))
a=l*b*h
i=2*(l*b+b*h+l*h)
x = 0
g = 0
r = 0
elif y=='d':
h=float(input("Enter Height\n"))
a=3.1415*l*l*h
i=(2*3.1415*l*h)+(2*3.1415*l*l)
b = 0
x = 0
g = 0
r = 0
elif y=='sp':
a=4*3.1415*h*h*h/3
i=4*3.1415*h*h
l = 0
b = 0
x = 0
g = 0
r = 0
elif y=='c':