diff options
Diffstat (limited to 'Working_Examples/154/DEPENDENCIES/ch1_2.sce')
-rwxr-xr-x | Working_Examples/154/DEPENDENCIES/ch1_2.sce | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Working_Examples/154/DEPENDENCIES/ch1_2.sce b/Working_Examples/154/DEPENDENCIES/ch1_2.sce new file mode 100755 index 0000000..eae2a42 --- /dev/null +++ b/Working_Examples/154/DEPENDENCIES/ch1_2.sce @@ -0,0 +1,13 @@ +clc
+disp("Example 1.2")
+printf("\n")
+printf("Given")
+disp("Current flow is 5A")
+disp("Time is 1 minute")
+i=5;
+//As electroms/min is asked so we need to convert A(C/s) to C/min
+i1=5*60;
+//Let e be electronic charge
+e=1.602*10^-19
+n=(i1/e)
+printf("Number of electrons =%3.2f electrons/min\n",n)
\ No newline at end of file |