Question: Exercise 4 You will write a short program to perform some basic math operations. Erase any old code still in your project's editor window. Write
Exercise 4 You will write a short program to perform some basic math operations. Erase any old code still in your project's editor window. Write a complete C program that solves this problem: You have two resistors Ri and R: that are connected in parallel with each other in a circuit. Their equivalent resistance Ray is given by this equation: R-,-( The program should meet these specifications: o Ask the user to enter the values of Ri and R: in ohms. Both are integer values. o Store the calculated Ray in a variable of the appropriate type. o Display the value of R Edit, build, and test your progr am. A sample run is shown below: Enter R1 (ohms):120 Enter R2 (ohms):47 Req = 95.59 322e ohms .In the area below, paste in your final program
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
