summaryrefslogtreecommitdiff
path: root/3754/CH3/EX3.30/3_30.sce
diff options
context:
space:
mode:
Diffstat (limited to '3754/CH3/EX3.30/3_30.sce')
-rw-r--r--3754/CH3/EX3.30/3_30.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/3754/CH3/EX3.30/3_30.sce b/3754/CH3/EX3.30/3_30.sce
new file mode 100644
index 000000000..959b9e577
--- /dev/null
+++ b/3754/CH3/EX3.30/3_30.sce
@@ -0,0 +1,17 @@
+clear//
+
+//Variables
+
+V = 24.0 //Voltage (in volts)
+I = 2.0 //Current (in Ampere)
+Pb = 0.5 //Power rating of each light bulb (in watt)
+
+//Calculation
+
+P = V * I //Maximum power (in watt)
+P80 = P * 0.8 //80percentageof power rating (in watt)
+n = (P80/Pb) //Number of bulbs required
+
+//Result
+
+printf("\n The number of bulbs required is %0.3f ." ,n)