#initialisation of Variable
FC=2000000.0;#in Rs
v=100.0;#in Rs
s=200.0;#in Rs
Q=60000.0;#in units
#Part a
# calculation
BEQ=FC/(s-v);#in units
#result
print "Break even quantity in units : ",round(BEQ,3)
#Part b
#calculation
BES=FC*s/(s-v);#in Rs
print "Break even sales in Rs. : ",round(BES,3)
#Part c
#calculation
Con=s*Q-v*Q;#in Rs
Mos=Q*s-BES;#in Rs
#result
print "Contribution in units : ",round(Con,3)
print "Margin of safety in Rs. : ",round(Mos,3)
#initialisation of variable
FC=25000.0;#in Rs
v=45000.0;#in Rs
s=120000.0;#in Rs
#Part a
#calculation
Con=s-v;#in Rs
#result
print "Contribution in Rs ",round(Con,3)
#Part b
#calculation
Prof=Con-FC;#in Rs
#result
print "Profit in Rs ",round(Prof,3);
#Part c
#calculation
PVratio=Con*100.0/s;#in %
BEP=FC*100.0/PVratio;#in Rs
#result
print "BEP in Rs ", round(BEP,3)
#Part d
#calculoation
MS=Prof*100/PVratio;#in Rs
#result
print"M.S. in Rs ", round(MS,3)
#initialisation of variable
FC=15000.0;#in Rs
v=35000.0;#in Rs
s=80000.0;#in Rs
#Part a
#calculation
Con=s-v;#in Rs
#result
print "Contribution in Rs", round(Con,3);
#Part b
#calcualtion
Prof=Con-FC;#in Rs
#result
print "Profit in Rs ", round(Prof,3)
#Part c
#calculation
PVratio=Con*100/s;
BEP=FC*100/PVratio;#in Rs
#result
print "BEP in Rs ",round(BEP,3)
#Part d
#calculation
MS=Prof*100/PVratio;#in Rs
print "M.S. in Rs",round(MS,3);