diff options
Diffstat (limited to '1301/CH12/EX12.20')
-rwxr-xr-x | 1301/CH12/EX12.20/ex12_20.sce | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/1301/CH12/EX12.20/ex12_20.sce b/1301/CH12/EX12.20/ex12_20.sce new file mode 100755 index 000000000..f2306320f --- /dev/null +++ b/1301/CH12/EX12.20/ex12_20.sce @@ -0,0 +1,8 @@ +clc;
+V=12; //potential diff in volt
+Q=15; //charge per time in Coulomb/sec
+t=3600; //time (seconds in an hour)
+P=V*Q; //calculating power in Watt
+W=P*t; //work done in Joule
+disp(P,"Power in Watt = "); //displaying result
+disp(W,"Work done in 1 hr in Joule = "); //displaying result
\ No newline at end of file |