summaryrefslogtreecommitdiff
path: root/98/CH2/EX2.6/example2_6.sce
blob: 9dd4ed1183ed8288fd2a0515793590e5e8966349 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//chatper 2
//example 2_6
//page 23

clear;
clc;

capacity = 5*10^6;
h = 200;
n_overall = 75;
density=1000;

w = capacity*density*9.81;
printf("Weight of water available is W = %.2f N \n", w);
e = w*h*n_overall/3600/1000;
//e - electrical energy
printf("Electrical energy available = W*H*n_overall = %.2f kWh \n", e);