summaryrefslogtreecommitdiff
path: root/3754/CH27/EX27.4/27_4.sce
diff options
context:
space:
mode:
Diffstat (limited to '3754/CH27/EX27.4/27_4.sce')
-rw-r--r--3754/CH27/EX27.4/27_4.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/3754/CH27/EX27.4/27_4.sce b/3754/CH27/EX27.4/27_4.sce
new file mode 100644
index 000000000..e977ba30e
--- /dev/null
+++ b/3754/CH27/EX27.4/27_4.sce
@@ -0,0 +1,15 @@
+clear//
+
+//Variables
+
+Ptrdc = 20.0 //dc Power (in watt)
+Poac = 5.0 //ac Power (in watt)
+
+//Calculation
+
+ne = Poac / Ptrdc //Collector efficiency
+P = Ptrdc //Power rating of the transistor
+
+//Result
+
+printf("\n Collector efficiency is %0.3f percentage.\nPower rating of the transistor is %0.3f W.",ne*100,P)