summaryrefslogtreecommitdiff
path: root/3754/CH3/EX3.2/3_2.sce
blob: 4675465f7a5714828660564e21af91f9568681a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
clear//

//Variables

V = 1.5    //Voltage (in Volts)
E =7.5     //Energy produced (in Joules)

//Calculation
Q = E/V    //Charge separated ( in Coulomb )

//Result
printf("\n The Amount of charge separated by the battery is  %0.3f  C.",Q)