Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a program to compute the power loss in a transmission line with a resistan

ID: 3628028 • 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, 60, 70, 80, 90, 100 miles at 100V and 200V.
The current i is calculated from
i= Power transmitted in watts / volts transmitted

The total resistance R is computed from the equation:
R = r * miles
where r is the resistance per mile.
The power loss is computed from the equation:
Power loss = isquared * R

Explanation / Answer

#include< stdio.h >

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);

}

}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote