write a c program to compute the power loss in a transmission line with a resist
ID: 3626883 • Letter: W
Question
write a c program 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 distances of 20,30,40,50,...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 X miles
where r is the resistance per mile.
the power is computed from the equation: power loss = i^2 x R.
Explanation / Answer
For future reference: The math shown above is incorrect. The book gives you the "power" in kilowatts (500), but the reference equation uses watts. So, the power variable should be set to 500,000. Also, the "power" and the "resistance" (r) do not change and should be coded as constants. const int power = 500; const float resistance = .05; Additionally, the chapter in which this problem appears (Chapter 4) is designed to teach nested loops - the first and second FOR loop shown above should be consolidated into a single FOR loop nested inside another FOR loop based on the volts transmitted (100 and 200 for the outer loop and distance 20-100 for the inner loop) as follows: for (volts_transmitted = 100; volts_transmittedRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.