summaryrefslogtreecommitdiff
path: root/3754/CH22/EX22.4/22_4.sce
diff options
context:
space:
mode:
Diffstat (limited to '3754/CH22/EX22.4/22_4.sce')
-rw-r--r--3754/CH22/EX22.4/22_4.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/3754/CH22/EX22.4/22_4.sce b/3754/CH22/EX22.4/22_4.sce
new file mode 100644
index 000000000..72279b502
--- /dev/null
+++ b/3754/CH22/EX22.4/22_4.sce
@@ -0,0 +1,18 @@
+clear//Variables
+
+VBB = 2.7 //Base voltage (in Volts)
+RB = 40.0 //Base resistance (in kilo-ohm)
+VCC = 10.0 //Supply voltage (in volts)
+RC = 2.5 //Collector resistance (in kilo-ohm)
+VBE = 0.7 //Emitter-to-base voltage (in volts)
+beta = 100.0 //Current gain
+
+//Calculation
+
+IB = (VBB - VBE)/RB //Base current (in milli-Ampere)
+IC = beta * IB
+
+//Result
+
+printf("\n The base current is %0.3f mA.",IB)
+printf("\n The collector current is %0.3f mA.",IC)