summaryrefslogtreecommitdiff
path: root/1529/CH1/EX1.7/1_07.sce
blob: 0f78811a9d57f05d948f3f8707e9413b518a5044 (plain)
1
2
3
4
5
6
7
//Chapter 1, Problem 7
clc;
V=5;                //source emf 
I=3;                //current in ampere
T=10*60;            //time in seconds
E=V*I*T;                //calculating energy
printf("Energy provided = %f kJ",E/1000);