Calculating Power Loss using C Programming Language
Not what you're looking for?
A program to compute the power loss in a transmission line with a resistance of 0.05 ohms/mile. Compare 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 divided by volts transmitted
The total resistance R is computed from the equation:
Power loss = i² x R.
Purchase this Solution
Solution Summary
The solution gives a complete c language code for calculating the power loss for which the formula is given in the question. The output is also given for reference.
Solution Preview
Hi, I include my code as follows and my output after code.
#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("nPower loss at 100v");
for(distance=20;distance <=100;distance=distance+10)
{
R=distance*r;
i=power/v1; ...
Purchase this Solution
Free BrainMass Quizzes
Java loops
This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.
Basic UNIX commands
Use this quiz to check your knowledge of a few common UNIX commands. The quiz covers some of the most essential UNIX commands and their basic usage. If you can pass this quiz then you are clearly on your way to becoming an effective UNIX command line user.
Excel Introductory Quiz
This quiz tests your knowledge of basics of MS-Excel.
Javscript Basics
Quiz on basics of javascript programming language.
Word 2010: Table of Contents
Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.