clc //initialisation of variables hi=143.6 //Btu/lbm he=53.8 //Btu/lbm xe=561.1 //Btu/lbm //CALCULATIONS Xe=(hi-he)/xe*100//per-cent //RESULTS printf('the the quality of the ammonia leaving the expansion value=% f per-cent',Xe)