Post Reply 
How to print out chemical equation
02-08-2017, 11:55 AM
Post: #5
RE: How to print out chemical equation
Working on...
PHP Code:
EXPORT COMBUSTAO()
BEGIN

LOCAL M
,N,R;
LOCAL n1,n2,n3,n4;
LOCAL n5,n6,n7,n8;
PRINT;
INPUT({{M,[0],{35,30,2}},{N,[0],{35,30,3}},{R,[0],{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"+" + "+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"+" + "+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
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: How to print out chemical equation - mop80087 - 02-08-2017 11:55 AM



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