Write a program in C, to compute the power loss in a transmission line with a resistance of 0.05 ohms/ mile. Compute the power loss if 500kW of power is transmitted from a power generating station to cities at a distance of 20, 30, 40, ...100 miles at 100 Volts and 200 Volts. The current(I) = power transmitted in Watts (W) / Volts transmitted. Resistance (R) = resistance per mile (r) * miles. power loss = current^2(I^2) * resistance (R).
Unfortunately, your question requires a lot of work and cannot be done for free. Submit it with all requirements as an assignment to our control panel and we'll assist you.