How to print out chemical equation
02-08-2017, 11:55 AM
Post: #5
 mop80087 Junior Member Posts: 24 Joined: Mar 2014
RE: How to print out chemical equation
Working on...
PHP Code:
EXPORT COMBUSTAO()BEGINLOCAL M,N,R;LOCAL n1,n2,n3,n4;LOCAL n5,n6,n7,n8;PRINT;INPUT({{M,,{35,30,2}},{N,,{35,30,3}},{R,,{35,30,4}}},"COMBUSTÃO",{"Carbono =","Hidrogénio =","Rendimento ="},{"Introduza Nº Átomos Carbono","Introduza Nº Átomos Hidrogénio","Introduza Rendimento"});      n1:=ROUND(M,3);   n2:=ROUND(N/2,3);   n4:=ROUND(M+(N/4),3);   n3:=ROUND((3.76*n4)/2,3);   n5:=ROUND((1+(R/100))*(M+(N/4)),3);   n6:=ROUND((3.76*n4)/2,3);   n7:=ROUND((R/100)*n4,3);   n8:=ROUND(n5*(2*3.76*14+2*16)/((12*M)+(1*N)),3);   PRINT("");PRINT("Equação teorica:");PRINT("C"+M+"H"+ N +" + "+n4+"(O2+3.76N2) ->");PRINT("                  "+n1+"CO2 + "+n2+"H20 + "+n3+"N2");PRINT("");PRINT("");PRINT("Com rendimento= "+R+"%");PRINT("Equação real:");PRINT("C"+M+"H"+ N +" + "+n5+"(O2+3.76N2) ->");PRINT("                  "+n1+"CO2 + "+n2+"H20 + "+n6+"N2 + "+n7+"O2");PRINT("");PRINT("Relação Ar-Combustivel");PRINT("(AC) "+n8+"="+n5+"*(2*3.76*14+2*16)/((12*"+M+")+(1*"+N+"))");WAIT(-1);END;
 « Next Oldest | Next Newest »

 Messages In This Thread How to print out chemical equation - mop80087 - 02-07-2017, 02:32 PM RE: How to print out chemical equation - mop80087 - 02-07-2017, 02:46 PM RE: How to print out chemical equation - compsystems - 02-07-2017, 03:51 PM RE: How to print out chemical equation - mop80087 - 02-08-2017, 08:59 AM RE: How to print out chemical equation - mop80087 - 02-08-2017 11:55 AM RE: How to print out chemical equation - RickP330 - 01-15-2023, 09:10 PM

User(s) browsing this thread: 1 Guest(s)