Share
Explore BrainMass

Using Turbo Pascal to Calculate Total Resistance

A program is required to calculate the total resistance in a circuit. The resistors can either be in series or in parallel but not both. The number of resistors in the circuit can range from 2 to 10. How do I get started?

Solution Preview

The total resistance in a circuit for resistors in series is just the sum of the resistances, i.e.
<br><br>
<br><br>R = r1+r2+...+r10
<br><br>
<br><br>For parallel:
<br><br>
<br><br>1/R=(1/r1)+(1/r2)+...+(1/r10)
<br><br>
<br><br>in both cases R is the total resistance and r1,...r10 are the individual resistances
<br><br>
<br><br>At the start of ...

Solution Summary

This job applies turbo pascal.

$2.19