blob: e089ad519c6d999f2d6993be082ede2ee89ccdb0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
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)
|