Question: C Code (Not C++) Problem 1 We can find the current of an electrical circuit by using Ohm's Law.I-V/z. Create a script that will find

 C Code (Not C++) Problem 1 We can find the current

C Code (Not C++)

Problem 1 We can find the current of an electrical circuit by using Ohm's Law.I-V/z. Create a script that will find the the current l based on the given values of V = a+jb and Z= c+jd. Your script should 1) Convert both V and Z in Rectangular Form x+y into Polar Form rLe, 2) Perform the Division between Vand Z by computing the ratio of(from --) ). Then, the Magnitude of the Current , will be found from and phase of the Current will be found from e,er -ez 3) Display the result in both Rectangular Form and Polar Form. 4) When you display the result in Polar Form use both Radians and Degrees forthe Phase Angle 5) Usershould be prompted to repeat the whole process at the end of the each computation of the current and based on the users choice, the whole process should berepeated or sto the screenshot in the next page forexample Please use . Needed Equations (in case you do not know) z-a+jb-rLB, r-./a. +8, 9-tan-1(b), a-rxcos b-rxsin . This will find the angle in radians Needed Functions:sqrt(value) or pow(value1, value2) Ex: r sqrt(A A+B-pow(A* A+B* B,0.5); atan(value) for computing0. Ex: Theta-atan(b/a); sin(value) and cos(value) for sin or cos . Ex: a-r* cos(Theta);b-r*sin(Theta); Angles in Degree Angle_in_Radians 180/3.141592

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!