This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
Unformatted text preview: CS 159 HW #03 5 Points Possible Due: February 22, 2010 at 11:00pm. Problem: Given as input the voltage and four resistors in series, compute the current in the circuit and the voltage drop across each resistor. Source for some of the material below: http://en.wikipedia.org/wiki/Resistor The behavior of an ideal resistor is dictated by the relationship specified in Ohm's law: V = IR Ohm's law states that the voltage (V) across a resistor is proportional to the current (I) through it where the constant of proportionality is the resistance (R). The current through resistors in series stays the same, but the voltage across each resistor can be different. The sum of the potential differences (voltage) is equal to the total voltage. The equivalent resistance of resistors connected in series is: Example Execution #1:====================== Enter the voltage: 6 Enter resistance #1: 2 Enter resistance #2: 4 Enter resistance #3: 5 Enter resistance #4: 7 Current in the circuit: 0.333 Voltage drop across resistor r1: 0.667 Voltage drop across resistor r2: 1.333 Voltage drop across resistor r3: 1.667 Voltage drop across resistor r4: 2.3332....
View
Full
Document
This note was uploaded on 02/22/2010 for the course CS 159 taught by Professor Crum during the Spring '08 term at Purdue UniversityWest Lafayette.
 Spring '08
 CRUM
 Computer Science

Click to edit the document details