Professional Documents
Culture Documents
plp=int(input("\n"))
if (plp==1):
mo=2
while(mo==2):
speak("Enter your choice \n \
(1)For To feed a new Balance Sheet \n \
(2)For To edit the existing Balance Sheet \n \
(3)For Diplay of balance sheet \n")
by1=int(input("Enter your choice \n \
(1).For To feed a new Balance Sheet \n \
(2).For To edit the existing Balance Sheet \n \
(3).For Display of Balance Sheet"))
if(by1==1):
mo=1
while(mo==1):
speak("Enter the year of balance sheet")
by=input("Enter the year of balance sheet \n")
tas=(liass+liass1+liass2+liass3+liass4+liass5+liass6+liass7+liass8+liass9)
if(tlia==tas):
t1=("BalanceSheet_AsOn_31st_March_"+by)
bqry=("create table " + t1+" (Particular
varchar(40) \
,Note_No int(10) \
,Amount int(10))")
mycur.execute(bqry)
conn.commit()
nsd=("insert into "+t1+"(Particular\
,Note_No\
,Amount)\
values(%s,%s,%s)")
nsd1=[("(1).Equity&iability",0,0)\
,("Share Capital",0,nass1)\
,("Reserves",0,nass2)\
,("(2).Non current liability",0,0)\
,("Long term borrowings",0,nass3)\
,("long term provisions",0,nass5)\
,("Other Long term
liabilities",0,nass4)\
,("Current Liability",0,0)\
,("Short term borrowings",0,nass6)\
,("Short Term Provisions",0,nass7)\
,("Other short term
liabilities",0,nass8)\
,("Total",0,tlia)\
,("ASSETS",0,0)\
,("(1).Non Current assets",0,0)
,("Fixed Assets",0,liass)\
,("Non current Investment",0,liass1)\
,("Long Term Advances",00,liass2)\
,("Other Non current
assets",0,liass3)\
,("Current Assets",0,0)\
,("Current Investment",0,liass4)\
,("Inventories",0,liass5)\
,("Trade Recievables",0,liass6)\
,("Cash & Cash equivalents",0,liass7)\
,("Short term advances",0,liass8)\
,("other current assets",0,liass9)\
,("Total",0,tas)]
mycur.executemany(nsd,nsd1)
conn.commit()
mnbp=("select * from "+t1)
mycur.execute(mnbp)
for x in mycur:
print(x)
print("Options \n(1).To feed another Balancesheet
\n (2).Menu \n (3).Main Menu \n (4).End \n")
speak("Enter one To feed another Balancesheet or
press two for back to menu or press 3 for main menu or 4 to end ")
mo=int(input(" "))
elif(tlia!=tas):
print("Please check the values in balance sheet
there is a diffrence of ",tlia-tas,"in it")
aplp=tlia-tas
speak("PLease check the values in balance sheet
ther is diffrence of ")
speak(aplp)
speak("in it")
print("Options \n(1).To feed another Balancesheet
\n (2).Menu \n (3).Main Menu \n (4).End \n")
speak("Enter one To feed another Balancesheet or
press two for back to menu or press 3 for main menu or 4 to end ")
mo=int(input(" "))
elif(by1==2):
speak("Enter the year of balance sheet")
m=input("Enter the year of balance sheet")
t1=("BalanceSheet_AsOn_31st_March_"+m)
poi=("You are editing Balancesheet As On thirty first
march",m)
speak(poi )
print("+------------------------------------+-----------+
\n")
print("|ACCOUNTS |Code |
\n")
print("+------------------------------------+-----------+
\n")
print("|Share Capital | 1
|\n")
print("+------------------------------------+-----------+
\n")
print("|Reserves | 2
|\n")
print("+------------------------------------+-----------+
\n")
print("|Long term borrowings | 3
|\n")
print("+------------------------------------+-----------+
\n")
print("|long term provisions | 4
|\n" )
print("+------------------------------------+-----------+
\n")
print("|Other Long term liabilities | 5
|\n")
print("+------------------------------------+-----------+
\n")
print("|Short term borrowings | 6
|\n")
print("+------------------------------------+-----------+
\n")
print("|Short Term Provisions | 7
|\n")
print("+------------------------------------+-----------+
\n")
print("|Other short term liabilities | 8
|\n")
print("+------------------------------------+-----------+
\n")
print("|Fixed Assets | 9
|\n")
print("+------------------------------------+-----------+
\n")
print("|Non current Investment | 10
|\n")
print("+------------------------------------+-----------+
\n")
print("|Long Term Advances | 11
|\n")
print("+------------------------------------+-----------+
\n")
print("|Other Non current assets | 12
|\n")
print("+------------------------------------+-----------+
\n")
print("|Current Investment | 13
|\n")
print("+------------------------------------+-----------+
\n")
print("|Inventories | 14
|\n")
print("+------------------------------------+-----------+
\n")
print("|Trade Recievables | 15
|\n")
print("+------------------------------------+-----------+
\n")
print("|Cash & Cash equivalents | 16
|\n")
print("+------------------------------------+-----------+
\n")
print("|Short term advances | 17
|\n")
print("+------------------------------------+-----------+
\n")
print("|other current assets | 18
|\n")
print("+------------------------------------+-----------+
\n")
mo=1
while(mo==1):
speak("Enter the Code of Account you want to edit")
colm=int(input("Enter the Code of Account you want to
edit"))
if(colm==1):
speak("Enter Amount of Share Capital ")
acolm=int(input("Enter Amount of Share Capital
"))
nsa="update "+t1+" set amount=%s where
Particular=%s"
nsa1=(acolm,"Share Capital")
mycur.execute(nsa,nsa1)
conn.commit()
speak("Enter one for continue editing or press
two for back to menu or press 3 for main menu or 4 to end ")
print("Options \n(1).Continue Editing \n (2).Menu
\n (3).Main Menu \n (4).End \n")
mo=int(input(" "))
elif(colm==2):
speak("Enter Amount of Reserves")
acolm=int(input("Enter Amount of Reserves "))
nsa=("update "+t1+" set amount=%s where
Particular=%s")
nsa1=(acolm,"Reserves")
mycur.execute(nsa,nsa1)
conn.commit()
speak("Enter one for continue editing or press
two for back to menu or press 3 for main menu or 4 to end ")
print("Options \n(1).Continue Editing \n (2).Menu
\n (3).Main Menu \n (4).End \n")
mo=int(input(" "))
elif(colm==3):
speak("Enter Amount of Long term borrowings")
acolm=int(input("Enter Amount of Long term
borrowings "))
nsa=("update "+t1+" set amount=%s where
Particular=%s")
nsa1=(acolm,"Long term borrowings")
mycur.execute(nsa,nsa1)
conn.commit()
speak("Enter one for continue editing or press
two for back to menu or press 3 for main menu or 4 to end ")
print("Options \n(1).Continue Editing \n (2).Menu
\n (3).Main Menu \n (4).End \n")
mo=int(input(" "))
elif(colm==4):
speak("Enter Amount of long term provisions")
acolm=int(input("Enter Amount of long term
provisions "))
nsa=("update "+t1+" set amount=%s where
Particular=%s")
nsa1=(acolm,"long term provisions")
mycur.execute(nsa,nsa1)
conn.commit()
speak("Enter one for continue editing or press
two for back to menu or press 3 for main menu or 4 to end ")
print("Options \n(1).Continue Editing \n (2).Menu
\n (3).Main Menu \n (4).End \n")
mo=int(input(" "))
elif(colm==5):
speak("Enter Amount of Other Long term
liabilities ")
acolm=int(input("Enter Amount of Other Long term
liabilities "))
nsa=("update "+t1+" set amount=%s where
Particular=%s")
nsa1=(acolm,"Other Long term liabilities
")
mycur.execute(nsa,nsa1)
conn.commit()
speak("Enter one for continue editing or press
two for back to menu or press 3 for main menu or 4 to end ")
print("Options \n(1).Continue Editing \n (2).Menu
\n (3).Main Menu \n (4).End \n")
mo=int(input(" "))
elif(colm==6):
speak("Enter Amount of Short term borrowings")
acolm=int(input("Enter Amount of Short term
borrowings "))
nsa=("update "+t1+" set amount=%s where
Particular=%s")
nsa1=(acolm,"Short term borrowings")
mycur.execute(nsa,nsa1)
conn.commit()
speak("Enter one for continue editing or press
two for back to menu or press 3 for main menu or 4 to end ")
print("Options \n(1).Continue Editing \n (2).Menu
\n (3).Main Menu \n (4).End \n")
mo=int(input(" "))
elif(colm==7):
speak("Enter Amount of Short Term provisions ")
acolm=int(input("Enter Amount of Short Term
provisions "))
nsa=("update "+t1+" set amount=%s where
Particular=%s")
nsa1=(acolm,"Short Term provisions")
mycur.execute(nsa,nsa1)
conn.commit()
speak("Enter one for continue editing or press
two for back to menu or press 3 for main menu or 4 to end ")
print("Options \n(1).Continue Editing \n (2).Menu
\n (3).Main Menu \n (4).End \n")
mo=int(input(" "))
elif(colm==8):
speak("Enter Amount of Other short term
liabilities")
acolm=int(input("Enter Amount of Other short
term liabilities "))
nsa=("update "+t1+" set amount=%s where
Particular=%s")
nsa1=(acolm,"Other short term liabilities")
mycur.execute(nsa,nsa1)
conn.commit()
speak("Enter one for continue editing or press
two for back to menu or press 3 for main menu or 4 to end ")
print("Options \n(1).Continue Editing \n (2).Menu
\n (3).Main Menu \n (4).End \n")
mo=int(input(" "))
elif(colm==9):
speak("Enter Amount of Fixed Assets ")
acolm=int(input("Enter Amount of Fixed Assets
"))
nsa=("update "+t1+" set amount=%s where
Particular=%s")
nsa1=(acolm,"Fixed Assets")
mycur.execute(nsa,nsa1)
conn.commit()
speak("Enter one for continue editing or press
two for back to menu or press 3 for main menu or 4 to end ")
print("Options \n(1).Continue Editing \n (2).Menu
\n (3).Main Menu \n (4).End \n")
mo=int(input(" "))
elif(colm==10):
speak("Enter Amount of Non current Investment")
acolm=int(input("Enter Amount of Non current
Investment "))
nsa=("update "+t1+" set amount=%s where
Particular=%s")
nsa1=(acolm,"Non current Investment")
mycur.execute(nsa,nsa1)
conn.commit()
speak("Enter one for continue editing or press
two for back to menu or press 3 for main menu or 4 to end ")
print("Options \n(1).Continue Editing \n (2).Menu
\n (3).Main Menu \n (4).End \n")
mo=int(input(" "))
elif(colm==11):
speak("Enter Amount of Long Term Advances")
acolm=int(input("Enter Amount of Long Term
Advances "))
nsa=("update "+t1+" set amount=%s where
Particular=%s")
nsa1=(acolm,"Long Term Advances ")
mycur.execute(nsa,nsa1)
conn.commit()
speak("Enter one for continue editing or press
two for back to menu or press 3 for main menu or 4 to end ")
print("Options \n(1).Continue Editing \n (2).Menu
\n (3).Main Menu \n (4).End \n")
mo=int(input(" "))
elif(colm==12):
speak("Enter Amount of Other Non current assets
")
acolm=int(input("Enter Amount of Other Non
current assets "))
nsa=("update "+t1+" set amount=%s where
Particular=%s")
nsa1=(acolm,"Other Non current assets")
mycur.execute(nsa,nsa1)
conn.commit()
speak("Enter one for continue editing or press
two for back to menu or press 3 for main menu or 4 to end ")
print("Options \n(1).Continue Editing \n (2).Menu
\n (3).Main Menu \n (4).End \n")
mo=int(input(" "))
elif(colm==13):
speak("Enter Amount of Current Investment")
acolm=int(input("Enter Amount of Current
Investment"))
nsa=("update "+t1+" set amount=%s where
Particular=%s")
nsa1=(acolm,"Current Investment")
mycur.execute(nsa,nsa1)
conn.commit()
speak("Enter one for continue editing or press
two for back to menu or press 3 for main menu or 4 to end ")
print("Options \n(1).Continue Editing \n (2).Menu
\n (3).Main Menu \n (4).End \n")
mo=int(input(" "))
elif(colm==14):
speak("Enter Amount of Inventories ")
acolm=int(input("Enter Amount of Inventories "))
nsa=("update "+t1+" set amount=%s where
Particular=%s")
nsa1=(acolm,"Inventories")
mycur.execute(nsa,nsa1)
conn.commit()
speak("Enter one for continue editing or press
two for back to menu or press 3 for main menu or 4 to end ")
print("Options \n(1).Continue Editing \n (2).Menu
\n (3).Main Menu \n (4).End \n")
mo=int(input(" "))
elif(colm==15):
speak("Enter Amount of Trade Recievables")
acolm=int(input("Enter Amount of Trade
Recievables"))
nsa=("update "+t1+" set amount=%s where
Particular=%s")
nsa1=(acolm,"Trade Recievables")
mycur.execute(nsa,nsa1)
conn.commit()
speak("Enter one for continue editing or press
two for back to menu or press 3 for main menu or 4 to end ")
print("Options \n(1).Continue Editing \n (2).Menu
\n (3).Main Menu \n (4).End \n")
mo=int(input(" "))
elif(colm==16):
speak("Enter Amount of Cash & Cash equivalents
")
acolm=int(input("Enter Amount of Cash & Cash
equivalents "))
nsa=("update "+t1+" set amount=%s where
Particular=%s")
nsa1=(acolm,"Cash & Cash equivalents")
mycur.execute(nsa,nsa1)
conn.commit()
speak("Enter one for continue editing or press
two for back to menu or press 3 for main menu or 4 to end ")
print("Options \n(1).Continue Editing \n (2).Menu
\n (3).Main Menu \n (4).End \n")
mo=int(input(" "))
elif(colm==17):
speak("Enter Amount of Short term advances")
acolm=int(input("Enter Amount of Short term
advances"))
nsa=("update "+t1+" set amount=%s where
Particular=%s")
nsa1=(acolm,"Short term advances")
mycur.execute(nsa,nsa1)
conn.commit()
speak("Enter one for continue editing or press
two for back to menu or press 3 for main menu or 4 to end ")
print("Options \n(1).Continue Editing \n (2).Menu
\n (3).Main Menu \n (4).End \n")
mo=int(input(" "))
elif(colm==18):
speak("Enter Amount of other current assets")
acolm=int(input("Enter Amount of other current
assets"))
nsa=("update "+t1+" set amount=%s where
Particular=%s")
nsa1=(acolm,"other current assets")
mycur.execute(nsa,nsa1)
conn.commit()
speak("Enter one for continue editing or press
two for back to menu or press 3 for main menu or 4 to end ")
print("Options \n(1).Continue Editing \n (2).Menu
\n (3).Main Menu \n (4).End \n")
mo=int(input(" "))
else:
print("error")
conn.close
elif(by1==3):
mo=1
while(mo==1):
speak("Enter the year of balance sheet")
by=input("Enter the year of balance sheet \n")
t1=("BalanceSheet_AsOn_31st_March_"+by)
mnbp=("select * from "+t1)
mycur.execute(mnbp)
for x in mycur:
print(x)
speak("Enter one to Show another balance sheet or
press two for back to menu or press 3 for main menu or 4 to end ")
print("Options \n(1).to Show another balance sheet \n
(2).Menu \n (3).Main Menu \n (4).End \n")
mo=int(input(" "))
elif(plp==2):
mo=2
while(mo==2):
print("Enter type of data you want to analyze")
speak("Enter the type of data analysis")
print("(1).for Profit Data analysis")
speak("one for Profit data Analysis")
print("(2).for Sales Data analysis")
speak("two for sales data analysis")
print("(3).for Share Capital")
speak("three for share capital analysis")
print("(4).for Market Share")
speak("four for market share analysis")
da1=int(input("Enter the your choice in No"))
if(da1==1):
speak("Enter no of years data you want to feed")
ey=int(input("Enter no of years data you want to feed \n"))
ely=[]
elp=[]
for i in range(1,ey+1):
fy=("Enter the profit of",i,"st year")
speak(fy)
print("Enter the profit of",i,"st year")
fdy=eval(input(" "))
ely.insert(i,i)
elp.insert(i,fdy)
mo=1
while(mo==1):
speak("Enter type of data representation \
(1).for Bar Graph \
(2).for Line Chart \
(3).for pie chart ")
gs=int(input("Enter type of data representation \n \
(1).for Bar Graph \n \
(2).for Line Chart \n \
(3).for pie chart \n"))
if(gs==2):
plt.title("Profit Analysis of last Years")
plt.xlabel("Years")
plt.ylabel("Profit")
plt.plot(ely, elp, color="red")
plt.grid(True)
plt.show()
speak("Press 1 to present data in another form 2
menu 3 Main menu 4 for end ")
mo=eval(input("(1).to present data in another
form \n(2).menu \n (3).Main menu \n(4).for end "))
elif(gs==1):
plt.title("Profit Analysis of last Years")
plt.xlabel("Years")
plt.ylabel("Profit")
plt.bar(ely, elp, color="red")
plt.grid(True)
plt.show()
speak("Press 1 to present data in another form 2
menu 3 Main menu 4 for end ")
mo=eval(input("(1).to present data in another
form \n(2).menu \n (3).Main menu \n(4).for end "))
elif(gs==3):
plt.title("Profit Analysis of last Years")
plt.xlabel("Years")
plt.ylabel("Profit")
plt.pie(elp,labels=ely,
autopct='%.2f%%',shadow=True)
plt.show()
speak("Press 1 to present data in another form 2
menu 3 Main menu 4 for end ")
mo=eval(input("(1).to present data in another
form \n(2).menu \n (3).Main menu \n(4).for end "))
else:
print("error")
elif(da1==2):
speak("Enter no of years data you want to feed")
ey=int(input("Enter no of years data you want to feed \n"))
ely=[]
elp=[]
for i in range(1,ey+1):
fy=("Enter the sales of",i,"st year")
speak(fy)
print("Enter the sales of",i,"st year")
fdy=eval(input(" "))
ely.insert(i,i)
elp.insert(i,fdy)
mo=1
while(mo==1):
gs=int(input("Enter type of data representation \n \
(1).for Bar Graph \n \
(2).for Line Chart \n \
(3).for pie chart \n"))
if(gs==2):
plt.title("Sales Analysis of last Years")
plt.xlabel("Years")
plt.ylabel("Sales")
plt.plot(ely, elp, color="red")
plt.grid(True)
plt.show()
mo=eval(input("(1).to present data in another
form \n(2).menu \n (3).Main menu \n(4).for end "))
elif(gs==1):
plt.title("sales Analysis of last Years")
plt.xlabel("Years")
plt.ylabel("sales")
plt.bar(ely, elp, color="red")
plt.grid(True)
plt.show()
mo=eval(input("(1).to present data in another
form \n(2).menu \n (3).Main menu \n(4).for end "))
elif(gs==3):
plt.title("Sales Analysis of last Years")
plt.xlabel("Years")
plt.ylabel("Sales")
plt.pie(elp,labels=ely,
autopct='%.2f%%',shadow=True)
plt.show()
mo=eval(input("(1).to present data in another
form \n(2).menu \n (3).Main menu \n(4).for end "))
else:
print("error")
elif(da1==3):
ey=int(input("Enter no of years data you want to feed \n"))
ely=[]
elp=[]
for i in range(1,ey+1):
fy=print("Enter the Share Capital of",i,"st year")
fdy=eval(input(" "))
ely.insert(i,i)
elp.insert(i,fdy)
mo=1
while(mo==1):
gs=int(input("Enter type of data representation \n \
(1).for Bar Graph \n \
(2).for Line Chart \n \
(3).for pie chart \n"))
if(gs==2):
plt.title("Share Capital Analysis of last Years")
plt.xlabel("Years")
plt.ylabel("Share Capital")
plt.plot(ely, elp, color="red")
plt.grid(True)
plt.show()
mo=eval(input("(1).to present data in another
form \n(2).menu \n (3).Main menu \n(4).for end "))
elif(gs==1):
plt.title("share Capital Analysis of last Years")
plt.xlabel("Years")
plt.ylabel("share Capital")
plt.bar(ely, elp, color="red")
plt.grid(True)
plt.show()
mo=eval(input("(1).to present data in another
form \n(2).menu \n (3).Main menu \n(4).for end "))
elif(gs==3):
plt.title("Share Capital Analysis of last Years")
plt.xlabel("Years")
plt.ylabel("Share Capital")
plt.pie(elp,labels=ely,
autopct='%.2f%%',shadow=True)
plt.show()
mo=eval(input("(1).to present data in another
form \n(2).menu \n (3).Main menu \n(4).for end "))
else:
print("error")
elif(da1==4):
ey=int(input("Enter no of years data you want to feed \n"))
ely=[]
elp=[]
for i in range(1,ey+1):
fy=print("Enter the Market Share of",i,"st year")
fdy=eval(input(" "))
ely.insert(i,i)
elp.insert(i,fdy)
mo=1
while(mo==1):
gs=int(input("\t Enter type of data representation \n
\
(1).for Bar Graph \n \
(2).for Line Chart \n \
(3).for pie chart \n"))
if(gs==2):
plt.title("Market Share Analysis of last Years")
plt.xlabel("Years")
plt.ylabel("Market Share")
plt.plot(ely, elp, color="red")
plt.grid(True)
plt.show()
mo=eval(input("(1).to present data in another
form \n(2).menu \n (3).Main menu \n(4).for end "))
elif(gs==1):
plt.title("sales Analysis of last Years")
plt.xlabel("Years")
plt.ylabel("Market share")
plt.bar(ely, elp, color="red")
plt.grid(True)
plt.show()
mo=eval(input("(1).to present data in another
form \n(2).menu \n (3).Main menu \n(4).for end "))
elif(gs==3):
plt.title("Market Share Analysis of last Years")
plt.xlabel("Years")
plt.ylabel("Market Share")
plt.pie(elp,labels=ely,
autopct='%.2f%%',shadow=True)
plt.show()
mo=eval(input("(1).to present data in another
form \n(2).menu \n (3).Main menu \n(4).for end "))
else:
print("error")
else:
print("Error")
elif(plp==3):
mo=2
while(mo==2):
print("Enter Your Choice \n\
(1).For Comparative Size BalanceSheet \n \
(2).For Comman Size Balance Sheet")
by=int(input(""))
if(by==1):
mo=1
while(mo==1):
last=int(input("Enter the last year"))
curr=int(input("Enter the current year"))
print("\n Enter Value of the following Liabilities:-")
print("\nEquity share capital on 31st march",last)
eshare=eval(input(""))
print("Equity share capital on 31st march",curr)
eshare1=eval(input(""))
print("Preference Share capital capital on 31st
march",last)
pshare=eval(input(""))
print("Preference Share capital capital on 31st
march",curr)
pshare1=eval(input(""))
print("Reserves & Surplus on 31st march",last)
resu=eval(input(""))
print("Reserves & Surplus on 31st march",curr)
resu1=eval(input(""))
print("Long term provisions on 31st march",last)
ltp=eval(input(""))
print("Long term provisions on 31st march",curr)
ltp1=eval(input(""))
print("Long term borrowings on 31st march",last)
ltb=eval(input(""))
print("Long term borrowings on 31st march",curr)
ltb1=eval(input(""))
print("Short term borrowings on 31st march",last)
stb=eval(input(""))
print("Short term borrowings on 31st march",curr)
stb1=eval(input(""))
print("Trade Payables on 31st march",last)
trdp=eval(input(""))
print("Trade Payables on 31st march",curr)
trdp1=eval(input(""))
print("Other Current Liabilities on 31st march",last)
rcl=eval(input(""))
print("Other Current Liabilities on 31st march",curr)
rcl1=eval(input(""))
print("Short Term Provisions on 31st march",last)
stp=eval(input(""))
print("Short Term Provisions on 31st march",curr)
stp1=eval(input(""))
ltotl=(eshare+pshare+resu+ltb+stb+trdp+rcl+stp+ltp)
ltotc=(eshare1+pshare1+resu1+ltb1+stb1+trdp1+rcl1+stp1+ltp1)
print("\nEnter the value of following Assets:-")
print("\nTangible Assets on 31st march",last)
ta=eval(input(""))
print("Tangible Assets on 31st march",curr)
ta1=eval(input(""))
print("Intangible Assets on 31st march",last)
ita=eval(input(""))
print("Intangible Assets on 31st march",curr)
ita1=eval(input(""))
print("Non current investments on 31st march",last)
nci=eval(input(""))
print("Non current investments on 31st march",curr)
nci1=eval(input(""))
print("Long Term loans on 31st march",last)
ltl=eval(input(""))
print("Long Term loans on 31st march",curr)
ltl1=eval(input(""))
print("Current investments on 31st march",last)
ci=eval(input(""))
print("Current investments on 31st march",curr)
ci1=eval(input(""))
print("Inventories on 31st march",last)
ai=eval(input(""))
print("Inventories on 31st march",curr)
ai1=eval(input(""))
print("Trade Recievables on 31st march",last)
td=eval(input(""))
print("Trade Recievables on 31st march",curr)
td1=eval(input(""))
print("Cash & Cash Equivalents on 31st march",last)
cce=eval(input(""))
print("Cash & Cash Equivalents on 31st march",curr)
cce1=eval(input(""))
print("Short Term loans and Advances on 31st
march",last)
stl=eval(input(""))
print("Short Term loans and advances on 31st
march",curr)
stl1=eval(input(""))
print("Other Current Assets on 31st march",last)
oca=eval(input(""))
print("Other Current Assets on 31st march",curr)
oca1=eval(input(""))
atotl=(ta+ita+nci+ltl+ci+ai+td+cce+stl+oca)
atotc=(ta1+ita1+nci1+ltl1+ci1+ai1+td1+cce1+stl1+oca1)
mydat=[("l.EQUITY AND LIABILITIES","","","","",""),
(" 1.Shareholder's Fund","","","","",""),
(" (a) Share Capital:","","","","",""),
(" (i)Equity Share
Capital","",eshare,eshare1,(eshare1-eshare),((eshare1-eshare)/eshare)*100),
(" (ii)Preference Share
Capital","",pshare,pshare1,(pshare1-pshare),((pshare1-pshare)/pshare)*100),
(" (b)Reserves &
Surplus","",resu,resu1,(resu1-resu),((resu1-resu)/resu)*100),
(" 2.Non-Current Liabilities","","","","",""),
(" (a)Long-term borrowings","",ltb,ltb1,(ltb1-
ltb),((ltb1-ltb)/ltb)*100),
(" (b)Long-term provisions","",ltp,ltp1,(ltp1-
ltp),((ltp1-ltp)/ltp)*100),
(" 3.Current Liabilities","","","","",""),
(" (a)Short-term
Borrowings","",stb,stb1,(stb1-stb),((stb1-stb)/stb)*100),
(" (b)Trade Payables","",trdp,trdp1,(trdp1-
trdp),((trdp1-trdp)/trdp)*100),
(" (c)Other current
liabilities","",rcl,rcl1,(rcl1/rcl),((rcl1/rcl)/rcl)*100),
(" (d)Short-term
provisions","",stp,stp1,(stp1-stp),((stp1-stp)/stp)*100),
("Total","",ltotl,ltotc,(ltotc-ltotl),((ltotc-
ltotl)/ltotl)*100),
("ll.ASSETS","","","","",""),
(" 1.Non-current Assets","","","","",""),
(" (a) Fixed Assets","","","","",""),
(" (i) Tangibles Assets","",ta,ta1,(ta1-
ta),((ta1-ta)/ta)*100),
(" (ii) Intangibles
Assets","",ita,ita1,(ita1-ita),((ita1-ita)/ita)*100),
(" (b) Non current
investment","",nci,nci1,(nci1-nci),((nci1-nci)/nci)*100),
(" (c) Long term loan","",ltl,ltl1,(ltl1-
ltl),((ltl1-ltl)/ltl)*100),
(" 2. Current Assets","","","","",""),
(" (a) Current investment","",ci,ci1,(ci1-
ci),((ci1-ci)/ci)*100),
(" (b) Inventories","",ai,ai1,(ai1-ai),((ai1-
ai)/ai)*100),
(" (c) Trade Recievables","",td,td1,(td1-
td),((td1-td)/td)*100),
(" (d) Cash&Cash
Equivalents","",cce,cce1,(cce1-cce),((cce1-cce)/cce)*100),
(" (e) Short term
loan&advances","",stl,stl1,(stl1-stl),((stl1-stl)/stl)*100),
(" (f) Other Current
Assets","",oca,oca1,(oca1-oca),((oca1-oca)/oca)*100),
("Total","",atotl,atotc,(atotc-atotl),((atotc-
atotl)/atotl)*100)]
ltotc=(eshare1+pshare1+resu1+ltb1+stb1+trdp1+rcl1+stp1+ltp1)
print("\nEnter the value of following Assets:-")
print("\nTangible Assets on 31st march",last)
ta=eval(input(""))
print("Tangible Assets on 31st march",curr)
ta1=eval(input(""))
print("Intangible Assets on 31st march",last)
ita=eval(input(""))
print("Intangible Assets on 31st march",curr)
ita1=eval(input(""))
print("Non current investments on 31st march",last)
nci=eval(input(""))
print("Non current investments on 31st march",curr)
nci1=eval(input(""))
print("Long Term loans on 31st march",last)
ltl=eval(input(""))
print("Long Term loans on 31st march",curr)
ltl1=eval(input(""))
print("Current investments on 31st march",last)
ci=eval(input(""))
print("Current investments on 31st march",curr)
ci1=eval(input(""))
print("Inventories on 31st march",last)
ai=eval(input(""))
print("Inventories on 31st march",curr)
ai1=eval(input(""))
print("Trade Recievables on 31st march",last)
td=eval(input(""))
print("Trade Recievables on 31st march",curr)
td1=eval(input(""))
print("Cash & Cash Equivalents on 31st march",last)
cce=eval(input(""))
print("Cash & Cash Equivalents on 31st march",curr)
cce1=eval(input(""))
print("Short Term loans and Advances on 31st
march",last)
stl=eval(input(""))
print("Short Term loans and advances on 31st
march",curr)
stl1=eval(input(""))
print("Other Current Assets on 31st march",last)
oca=eval(input(""))
print("Other Current Assets on 31st march",curr)
oca1=eval(input(""))
atotl=(ta+ita+nci+ltl+ci+ai+td+cce+stl+oca)
atotc=(ta1+ita1+nci1+ltl1+ci1+ai1+td1+cce1+stl1+oca1)
mydat=[("l.EQUITY AND LIABILITIES","","","","",""),
(" 1.Shareholder's Fund","","","","",""),
(" (a) Share Capital:","","","","",""),
(" (i)Equity Share
Capital","",eshare,eshare1,(eshare/ltotl)*100,(eshare1/ltotc)*100),
(" (ii)Preference Share
Capital","",pshare,pshare1,(pshare/ltotl)*100,(pshare1/ltotc)*100),
(" (b)Reserves &
Surplus","",resu,resu1,(resu/ltotl)*100,(resu1/ltotc)*100),
(" 2.Non-Current Liabilities","","","","",""),
(" (a)Long-term
borrowings","",ltb,ltb1,(ltb/ltotl)*100,(ltb1/ltotc)*100),
(" (b)Long-term
provisions","",ltp,ltp1,(ltp/ltotl)*100,(ltp1/ltotc)*100),
(" 3.Current Liabilities","","","","",""),
(" (a)Short-term
Borrowings","",stb,stb1,(stb/ltotl)*100,(stb1/ltotc)*100),
(" (b)Trade
Payables","",trdp,trdp1,(trdp/ltotl)*100,(trdp1/ltotc)*100),
(" (c)Other current
liabilities","",rcl,rcl1,(rcl/ltotl)*100,(rcl1/ltotc)*100),
(" (d)Short-term
provisions","",stp,stp1,(stp/ltotl)*100,(stp1/ltotc)*100),
("Total","",ltotl,ltotc,100,100),
("ll.ASSETS","","","","",""),
(" 1.Non-current Assets","","","","",""),
(" (a) Fixed Assets","","","","",""),
(" (i) Tangibles
Assets","",ta,ta1,(ta/atotl)*100,(ta1/atotc)*100),
(" (ii) Intangibles
Assets","",ita,ita1,(ita/atotl)*100,(ita1/atotc)*100),
(" (b) Non current
investment","",nci,nci1,(nci/atotl)*100,(nci/atotc)*100),
(" (c) Long term
loan","",ltl,ltl1,(ltl/atotl)*100,(ltl1/atotc)*100),
(" 2. Current Assets","","","","",""),
(" (a) Current
investment","",ci,ci1,(ci/atotl)*100,(ci1/atotc)*100),
(" (b)
Inventories","",ai,ai1,(ai/atotl)*100,(ai1/atotc)*100),
(" (c) Trade
Recievables","",td,td1,(td/atotl)*100,(td1/atotc)*100),
(" (d) Cash&Cash
Equivalents","",cce,cce1,(cce/atotl)*100,(cce1/atotc)*100),
(" (e) Short term
loan&advances","",stl,stl1,(stl/atotl)*100,(stl1/atotc)*100),
(" (f) Other Current
Assets","",oca,oca1,(oca/atotl)*100,(oca1/atotc)*100),
("Total","",atotl,atotc,100,100)]
headr=["Particular","NoteNo","last year","current
year","percentage last year","percentage current year"]
print(tabulate(mydat, headers=headr,tablefmt="grid"))
print("Options \n(1).For another Comman Size Statement
\n (2).Menu \n (3).Main Menu \n (4).End \n")
mo=int(input(" "))