# Untitled

unknown
plain_text
2 years ago
1.1 kB
1
Indexable
Never
```import math
l=0
lNot=0
eu=0
r =0
dW=1.025
pA=1.14
pEs=1.38
pE=0.96
Pp=0.91
l=float(input('Enter L:-  '))
lNot=float(input('Enter l0:-  '))
eu=float(input('Enter eu:-  '))
DM=(str(input('chose one of DM pA or pE or pEs or Pp :')))
if eu==0:
eu=l/lNot
print('the EU equal : ',eu)
elif l==0:
l=eu*lNot
print('the l equal : ', l)
elif lNot==0:
lNot=l/eu
print('the l0 equal : ', lNot)

if DM == 'pA':
DM = '1.14'
elif DM == 'pEs':
DM = '1.38'
elif DM == 'pE':
DM = '0.95'
elif DM == 'Pp':
DM = '0.9120'
else :
print('select correct Type ')
#float(DM)
print('the DM',DM)
v=math.pi*(r**2)*lNot
print('the volum',v)
B=v*dW
print('the B',B)
print()
w= v * float( DM )
print('the W',w)
Q=w-B
print('result of Q is :', Q)
if Q==0:
print('NET is Neutral')
elif Q<0:
print('NET is FLOAT')
else:
print('The NET will SINK')
print('Hanging Ratio is : ',eu)
print('Hanging Ratio if it is Equal 0 or 1 the ROPE will be come stretched, if it is between 0 and 1 it will be take dimon ship ')
```