USING \"C\" and stdio.h and math.h libraries only 3. Create a script that will t
ID: 2248325 • Letter: U
Question
USING "C" and stdio.h and math.h libraries only
3. Create a script that will take User Input - from Keyboard while running - with if, else if, and else conditionals to calculate the Total Resistance (R_T) 1) rl.. r2, and r3 are connected in series manner. (RT-r1+r2+r3) 2) r2, and r3 are connected in parallel manner.(RT-1/(1/r1H1/r2)+(1/r3)) ) 3) rl is connected to the parallelly connected r2 and r3 in series manner. (R. T = r1 + r2xr3/(r2+r3) ) The output should be Dear Ms or Mr. [Your Name The Total Resistance is [your result] ohms since rl, r2, r3 are connected in [series, parallel, combination] manner. The script should prompt the user to type in values for the following variables while the program is running Your Namel.r2, and r3Explanation / Answer
#include #include int main () { float r[3]; int type=0; // type of connection float R_T; char *conn[] = {"series","parallel","combination"}; int i; char name[10]; char selected_type[10]=""; printf ("please enter your name "); scanf("%s",&name); for (i=0;iRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.