USING \"C\" and stdio.h and math.h libraries only ONLY DO #4 3. Create a script
ID: 2248326 • Letter: U
Question
USING "C" and stdio.h and math.h libraries only
ONLY DO #4
3. Create a script that will takeUser Input from Keyboard while running - with if, else if, and else conditionals to calculate the Total Resistance (R_T) 1 ) r2, and r3 are connected in series manner. (R. T= r1+r2+r3) 2) rl, r2, and r3 are connected in parallel manner. (RT = 1/(1/r1)+(1/r2)t(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,12, and r3. 4. Repeat problem 3 . This time use “switch".Explanation / Answer
scanf("%d",&a);
if(a===1)
{
if(a==2)
{
}
if(a==3)
{
}
return 0;
}
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.