diff options
Diffstat (limited to '2168/CH15/EX15.1/Chapter15_example1.sce')
-rwxr-xr-x | 2168/CH15/EX15.1/Chapter15_example1.sce | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/2168/CH15/EX15.1/Chapter15_example1.sce b/2168/CH15/EX15.1/Chapter15_example1.sce new file mode 100755 index 000000000..f3d20efc8 --- /dev/null +++ b/2168/CH15/EX15.1/Chapter15_example1.sce @@ -0,0 +1,13 @@ +clc
+clear
+//Input data
+n=6//Number of cylinders
+p=720//Horse power in h.p
+N=180//Speed in r.p.m
+f=250//Fuel rate in gm per horse power hour
+
+//Calculations
+w=(((f/1000)*p)/((N/2)*60*n))*1000//Weight of fuel per cycle in gm/cycle
+
+//Outptut
+printf('The quantity of fuel to be injected per cylinder is %3.2f gm/cycle',w)
|