diff options
Diffstat (limited to '3733/CH2/EX2.1/Ex2_1.sce')
-rw-r--r-- | 3733/CH2/EX2.1/Ex2_1.sce | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/3733/CH2/EX2.1/Ex2_1.sce b/3733/CH2/EX2.1/Ex2_1.sce new file mode 100644 index 000000000..efd2db49e --- /dev/null +++ b/3733/CH2/EX2.1/Ex2_1.sce @@ -0,0 +1,13 @@ +// Example 2_1
+clc;funcprot(0);
+//Given data
+R=6.2;//Rainfall in cm
+A=2346;// Area in km^2
+
+//Calculation
+Tr=A*10^6*(R/100);// Total rainfall in m^2
+V=(A*R*10^4)/86400;// Rainfall in day-sec-metre
+R_k=(A*R*10^4)/10^6;// Rainfall in km^2-m
+printf('\n Total rainfall=%0.4e m^3 \nVolume of rainfall=%0.0f day-sec-metre \nRainfall in km^2-m=%0.2f km^2-m',Tr,V,R_k);
+// The answer provided in the textbook is wrong
+
|