summaryrefslogtreecommitdiff
path: root/620/CH20/EX20.7
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /620/CH20/EX20.7
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '620/CH20/EX20.7')
-rw-r--r--620/CH20/EX20.7/example20_7.sce17
-rw-r--r--620/CH20/EX20.7/example20_7.txtbin0 -> 588 bytes
2 files changed, 17 insertions, 0 deletions
diff --git a/620/CH20/EX20.7/example20_7.sce b/620/CH20/EX20.7/example20_7.sce
new file mode 100644
index 000000000..a68acd8c4
--- /dev/null
+++ b/620/CH20/EX20.7/example20_7.sce
@@ -0,0 +1,17 @@
+p1=60;
+t=8;
+p2=9;
+amt=20;
+cost=0.08;
+disp("Part a");
+total=365*t*p1*cost/1000;
+disp("Cost (in $) to operate the incandescent lamp for a year is"); disp(total);
+disp("Part b");
+total2=365*t*p2*cost/1000;
+disp("Cost (in $ )to operate the fluorescent lamp for a year is"); disp(total2);
+disp("Part c");
+sav=total-total2;
+mon=amt*12/sav;
+t1=10000;
+t2=t1-365*t*mon/12;
+disp("the time (in hours) necessary for the energy savings is");disp(t2); \ No newline at end of file
diff --git a/620/CH20/EX20.7/example20_7.txt b/620/CH20/EX20.7/example20_7.txt
new file mode 100644
index 000000000..74c7b713b
--- /dev/null
+++ b/620/CH20/EX20.7/example20_7.txt
Binary files differ