Write a program to compute the power loss in a transmission line with a resistan
ID: 3636428 • Letter: W
Question
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.
Read more: 1. Write a program to compute the power loss in a transmission - JustAnswer http://www.justanswer.com/computer-programming/4juyw-1-write-program-compute-power-loss-transmission.html#ixzz1iSKL9i1G
Explanation / Answer
#include void main() { double r=0.05; int distance; double R,i; double power=500; int v1=100,v2=200; //calculating powerloss at v1=100 printf(" Power loss at 100v"); for(distance=20;distance < =100;distance=distance+10) { R=distance*r; i=power/v1; double powerloss=(i*i)*R; printf(" Power loss at %d distance is%f",distance,powerloss); } printf(" Power loss at 200v"); for(distance=20;distance< =100;distance=distance+10) { R=distance*r; i=power/v1; double powerloss=(i*i)*R; printf(" Power loss at %d distance is%f",distance,powerloss); } }Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.