summaryrefslogtreecommitdiff
path: root/3754/CH3/EX3.24/3_24.sce
blob: d45f9b86142189a9c95a7749b5ffc2ded0b82b3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
clear//

//Variables

W = 64000                    //Heat produced (in Joules)                
t = 40                       //time (in seconds)

//Calculation

P = W/t                      //Rate at which electrical energy is converted into heat energy (in watt)

//Result

printf("\n The rate at which electrical energy is converted into heat energy is :  %0.3f  W.",P)