summaryrefslogtreecommitdiff
path: root/1922/CH4/EX4.28
diff options
context:
space:
mode:
Diffstat (limited to '1922/CH4/EX4.28')
-rwxr-xr-x1922/CH4/EX4.28/4_28.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/1922/CH4/EX4.28/4_28.sce b/1922/CH4/EX4.28/4_28.sce
new file mode 100755
index 000000000..1baeea87d
--- /dev/null
+++ b/1922/CH4/EX4.28/4_28.sce
@@ -0,0 +1,12 @@
+clc
+clear
+//Initialization of variables
+H=2696.5 //kJ/kg
+hg=2706.7 //kJ/kg
+hf=504.7 //kJ/kg
+//calculations
+x= (H-hf)/(hg-hf)
+x2=1
+//results
+printf("In case 1, fraction of vapor = %.3f",x)
+printf("\n In case 2, fraction of vapor = %.3f",x2)