clc //initialisation of variables Wc= 12 //kg hf= -393520 //kJ/kmol gf= -394360 //kJ/kmol //CALCULATIONS Wmax= -gf/Wc //RESULTS printf (' maximum work= %.f kJ/kg of carbon ',Wmax)