1. Write a program to compute the power loss in a transmission line with a resistance of 0.05 ohms/mile. Compute the power loss if 500 kW of power is transmitted from a power generating station to cities at distances of 20, 30, 40, 50, ..., 100 miles at 100 V and 200 V.
The current i is calculated from:
I = power transmitted in watts/volts transmitted
The total resistance R is computed from the equation: R=r X miles
where r is the resistance per mile.
The poser loss is computed from the equation:
Power loss = X R.