summaryrefslogtreecommitdiff
path: root/2702/CH3/EX3.12/Ex_3_12.sce
diff options
context:
space:
mode:
Diffstat (limited to '2702/CH3/EX3.12/Ex_3_12.sce')
-rw-r--r--2702/CH3/EX3.12/Ex_3_12.sce21
1 files changed, 21 insertions, 0 deletions
diff --git a/2702/CH3/EX3.12/Ex_3_12.sce b/2702/CH3/EX3.12/Ex_3_12.sce
new file mode 100644
index 000000000..2de86d1b9
--- /dev/null
+++ b/2702/CH3/EX3.12/Ex_3_12.sce
@@ -0,0 +1,21 @@
+// Exa 3.12
+clc;
+clear;
+close;
+// Given data
+V_B= 5;// in V
+V_BE= 0.7;// in V
+V_CC= 10;// in V
+bita=100;
+R_B= 100;// in kΩ
+R_C= 2;// in kΩ
+R_B=R_B*10^3;// in Ω
+R_C=R_C*10^3;// in Ω
+I_B= (V_B-V_BE)/R_B;// in A
+I_C= bita*I_B;//in A
+V_C= V_CC-I_C*R_C;// in V
+I_E= I_C;// in A (approx)
+disp(I_B*10^3,"The value of I_B in mA is : ")
+disp(I_C*10^3,"The value of I_C in mA is : ")
+disp(V_C,"The value of V_C in volts is : ")
+disp(I_E*10^3,"The value of I_E in mAis : ")