summaryrefslogtreecommitdiff
path: root/3769/CH5/EX5.21
diff options
context:
space:
mode:
Diffstat (limited to '3769/CH5/EX5.21')
-rw-r--r--3769/CH5/EX5.21/Ex5_21.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/3769/CH5/EX5.21/Ex5_21.sce b/3769/CH5/EX5.21/Ex5_21.sce
new file mode 100644
index 000000000..16af83691
--- /dev/null
+++ b/3769/CH5/EX5.21/Ex5_21.sce
@@ -0,0 +1,14 @@
+clear
+//Given
+R20=20 //ohm
+P=60 //W
+V=120.0 //Volts
+a=5*10**-3
+
+//Calculation
+I=P/V
+Rt=V/I
+t=(((Rt/R20)-1)/a)+R20
+
+//Result
+printf("\n Normal working temperature of the lamp is %0.3f degree C", t)