clc clear //Input data h1=60;//The heat transfer in the process in kJ h2=-8;//The heat transfer in the process in kJ h3=-34;//The heat transfer in the process in kJ h4=6;//The heat transfer in the process in kJ //Calculations Q=h1+h2+h3+h4;//Net work transfer in a cycle in kJ //Output printf('Net work transfer in a cycle Q = %3.0f kJ ',Q)