blob: 81a9a2aa14d84512a221fd5bb844a46b1eee4fc1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
disp("Part a");
v=120;
i=.5;
p=v*i;
disp("the power (in W) used by the lamp is"); disp(p);
disp("Part b");
disp("the rate (in J/s) at which heat is converted to light is"); disp(p);
disp("Part c");
t=60;
e=p*t;
disp("the amount of energy (in J) used by the lamp is"); disp(e);
|