summaryrefslogtreecommitdiff
path: root/2234/CH4/EX4.27/ex4_27.sce
blob: db882e8d86827fb2cfd5f5c82e64e4deb86338dd (plain)
1
2
3
4
5
6
7
8
9
clc;
eo=8.85*10^-12;  //constant
V=6;  //v in volt
A=25*10^-4;  //area in m square
d=10^-3;  //distance in m
q=(eo*A*V)/d;  //calculating charge
W=q*V;   //calculating work done
disp(q,"Charge through battery in Coulomb = ");  //displaying result
disp(W,"Work done by Battery in Joule = ");  //displaying result