The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 3 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
see attached document for details about the c++ question
Â
ENGR 200FALL 2016P4: POWER LOSS IN A TRANSMISSION LINE(if statements, loops)DUE:October 6, 2016 by 11:59 p.m. CT (extra credit)October 11, 2016 by 11:59 p.m. CT (final deadline)POINTS: 50INTRODUCTION:When electricity is transmitted through voltage lines, losses occur due to electrons colliding, converting theirenergy into heat. To minimize these losses, generally current is transmitted over long distances at high voltage;higher currents lead to heat losses, and low currents require high voltage (Ohm’s law). These losses scale with thesquare of a wire’s current. (As a note: this is why AC current is used in power transmission – it is less lossy thanDC current.)The power loss can be calculated using the following equations:i=power transmitted∈wattsvoltstransmittedR=r∗milesPower loss=i2∗Rwhere:i = current (amps)r = resistance (ohms/mile)R = total resistance (ohms)ASSIGNMENT:Write a C program that will first allow the user to enter the line resistance in ohms/mile and the powertransmitted in kW. The program needs to ensure that line resistance is between 0.04 and 0.07 ohms/mile andpower transmitted is between 475 and 525 kW; if either of these is not, it should print an error message and theprogram should end. If the values are acceptable, the program should compute the power loss for powertransmitted from a station to cities at distances of 15, 30, 45, …, 150 miles at 100 V and 200 V. Use a while loopto control voltage (initialize at 100.0 and increment by 100.0 to 200.0) and a nested for loop to control distance(initialize at 15.0 and increment by 15.0 to 150.0). The voltage, distance, and power loss should print to thescreen.Your program output will look like the illustration shown below.Use your PC’s cursor to determine thehorizontal and vertical spacing for the output format.NOTE:Use proper variable names. No single letter variables will be accepted.1
Attachments:
-----------