homework8-godara

# homework8-godara - ECE 1574 Homework Set #8 Tanuj Godara...

This preview shows pages 1–3. Sign up to view the full content.

ECE 1574 Homework Set # 8 Tanuj Godara 905279307 This assignment is to be done individually Complete the l ab exercise and answer questions 1 and 2 during the lab session. Answer the other questions later. LAB EXERCISE Consider the electrical circuit shown. ------2 ohms---- ----3 ohms---- - | | | | | | | | --- ---- ---- | | | | | | | | | | | | | ------4 ohms---- ----- 5 ohms---- | | | 100 volts 10 - 20 ohms | | | | ___ ___ - - In the circuit , there are a 100 - volt DC source, a 2 - ohm resistor in parallel with a 4 - ohm resistor, and then a 3 - ohm resistor in parallel with a 5- ohm resistor. The circuit is terminated in a load whose value varies randomly logarithmically, as in last week’s lab, between 10 and 20 ohms. Run a Monte Carlo simulation, estimating the expected (that is, the average) current through each of the five resistors. REQUIREMENTS 1. Write a function called parallel_resistance() which takes two resistances as arguments and returns their combined resistance in parallel. 2. Write a function called series_resistance() which takes two resistances as arguments and returns their combined resistance in series. 3. Stage the two functions together in a namespace called Resistance_Addition, presented in a header Resistance_Addition.h and coded in a program-source file

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document