EEE1004: Project 2. Equivalent Resistance Calculations

Consider the electrical circuit shown in the figure below:

Ladder Network


Such circuits are often called Ladder Networks.

This circuit contains 2n resistors connected in a ``series-parallel'' way. Every resistor whose number is odd (i.e., 1,3, ..., 2n-1) is connected in series with the group of resistors whose numbers are greater that its number. Those resistors whose numbers are even (i.e., 2,4, ..., 2n) are connected in parallel with the group of resistors whose numbers are greater. For example, R(1) is in series with the group between points (a) and (b), that is consisting of R(2),R(3), ..., R(2n). On the other hand, R(2) is in parallel with the group of resistors between points (a) and (c), that is R(3),R(4), ..., R(2n). Only the last two resistors, R(2n-1) and R(2n) are connected in series.

Design, implement and document a program that should perform the following:
Note: In Part 2, your program is also expected to ask the user to select between two forms of data input (interactive, as in Part 1, or file) and provide the names of the input and output files.


Instructions for preparing your documentation are on: http://www.staff.ncl.ac.uk/alex.yakovlev/eee1004/course/proj-inst.reduced.html
09/11/07 A. Yakovlev