summaryrefslogtreecommitdiff
path: root/1529/CH1/EX1.8/1_08.sce
diff options
context:
space:
mode:
Diffstat (limited to '1529/CH1/EX1.8/1_08.sce')
-rwxr-xr-x1529/CH1/EX1.8/1_08.sce9
1 files changed, 9 insertions, 0 deletions
diff --git a/1529/CH1/EX1.8/1_08.sce b/1529/CH1/EX1.8/1_08.sce
new file mode 100755
index 000000000..a853b7c6c
--- /dev/null
+++ b/1529/CH1/EX1.8/1_08.sce
@@ -0,0 +1,9 @@
+//Chapter 1, Problem 8
+clc;
+E=1.8*10^6; //energy consumes by electric heater
+T=30*60; //time in seconds
+V=250; //supply voltage
+P=E/T; //calculating power rating of the heater
+printf("Power rating of heater = %f kW \n\n\n",P/1000);
+I=P/V; //calculating current taken from the supply
+printf("Current taken from supply = %f A \n\n\n",I);