summaryrefslogtreecommitdiff
path: root/Working_Examples/154/DEPENDENCIES/ch1_4.sce
blob: 4a00b66da1c6c2377956ab3b0d09a312c4041eb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
clc
disp("Example 1.4")
printf("\n")
printf("Given")
disp("Potential difference is 50V")
disp("Charge per minute is 120C/min")
V=50;x=120;
//As Electrical energy is to be calculated charge per minute is to be converted in charge per second
//Charge per second is nothing but the current
i=x/60;
P=i*V;
//Since is 1W=1J/s
printf("Rate of energy conversion is %dJ/s\n",P)