summaryrefslogtreecommitdiff
path: root/620/CH3/EX3.10/example3_10.sce
diff options
context:
space:
mode:
Diffstat (limited to '620/CH3/EX3.10/example3_10.sce')
-rw-r--r--620/CH3/EX3.10/example3_10.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/620/CH3/EX3.10/example3_10.sce b/620/CH3/EX3.10/example3_10.sce
new file mode 100644
index 000000000..81a9a2aa1
--- /dev/null
+++ b/620/CH3/EX3.10/example3_10.sce
@@ -0,0 +1,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); \ No newline at end of file