Question
Explanation: This is for the CCS C compiler, it's a bit different than standard c, what I have below takes 4 branches of a circuit
Explanation: This is for the CCS C compiler, it's a bit different than standard c, what I have below takes 4 branches of a circuit in series, stores each branch, and the resistor values in those branches into an array. When that branch is referenced it calls up the total resistance in the designated branch. Below is a picture of the circuit in question.
Question: How would I alter this for a parallel circuit involving the 4 branches?
#include
r[1]=(130+70+20);
r[2]=(140+60+20);
r[3]=(150+50+20);
r[4]=(160+40+20);
int branch; printf("enter branch number "); scanf("%d",&branch); printf(" resistace of that branch is %d",r[branch]);
return 0; }
130R21 1402 Branch 1 Branch 2 Branch 3 Branch 4 160 R11 150 R41 R31 70 60 50 R12 40 R32 R22 R42 R 13 200 R23 20 20 20 R33 R43Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started