Beee Final
Beee Final
Lakshmi
242FA18151 - G. Hamsika
242FA18178 - Mohammad
Arshad
As the current of 2mA is at between a and b the
super mesh is not possible so the circuit is
modified as
R1 R4
a
R IR R R 5
3 3 2
10V 8V
b
A) In the given circuit above, if the current flowing through the R2 and R3
is 1.54 mA and 1.11 mA respectively then find R2 and R3 values using
loop analysis only.
6.49 = R 3 (1.11)
R3 = 6.49 / 1.11 = 5.84 kΩ
B) Find the current flowing through all the
resistances.
IR1 = I2=0.89mA
IR2= I2 - I1 = 0.89 - (-0.65) = 1.54
mA
IR3 =I3 = -1.11 mA(Given)
IR 4 =I1=-0.65mA
IR 5 =I1= -0.65mA
C) Find the voltage across all the
resistances
PR 1 =( IR1)² *R 1 = (0.89)²
×10=0.7921×10=7.92mW
PR 2 = (IR2)²*R2
=(1.54)²×4.93=2.3716×4.93=11.69m𝑊
PR 3 =
(IR3)²*R3=(1.11)²×5.84=1.2321×5.84=7.19mW
PR 4 = (IR4)²*R4
=(−0.65)²×12=0.4225×12=5.07m𝑊
PR 5 =
(IR5)²*R5=(−0.65)²×4=0.4225×4=1.69mW
E) Write a flowchart ,Algorithm and code to find the solution for the
above problem using any computer language.
Algorithm
Start
I. Initialize Values of currents, resistances, and voltage sources.
II. Apply Kirchhoff’s Current Law (KCL) Use KCL at nodes to determine
unknown currents.
IV. Calculate Voltage Drops Across Resistors Use Ohm’s Law to calculate
voltage drops.
VI. Display Results Print resistance values, voltage drops, and power
dissipation
VII. End.
Flowchart
start
Result
END
Program code
# Given values
I2, I3, Itotal = 1.54e-3, 1.11e-3, 2e-3
R1, R4, R5 = 10e3, 12e3, 4e3
E1, E2 = 10, 8
# Calculate R2, R3, and power across resistors
R2 = (E1 - Itotal * R1) / I2
R3 = E2 / I3
I4 = Itotal - I2 - I3
# Total power
P_total = P1 + P2 + P3 + P4 + P5
# Display results
print(f"R2 = {R2:.2f} ohms, R3 = {R3:.2f} ohms")
print(f"P1 = {P1:.4f} W, P2 = {P2:.4f} W, P3 = {P3:.4f} W, P4 = {P4:.4f}
W, P5 = {P5:.4f} W")
print(f"Total Power = {P_total:.4f} W")
Output
R2 = -6493.51 ohms, R3 = 7207.21 ohmsP1 = 0.0400 W, P2 = -0.0154
W, P3 = 0.0089 W, P4 = 0.0051 W, P5 = 0.0017 WTotal Power = 0.0402