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?

© SolutionLibrary Inc. solutionlibary.com 9836dcf9d7 https://solutionlibrary.com/computer-science/software-development/using-turbo-pascal-to-calculate-total-resistance-2eg

Solution Preview

...t for Series or Parallel and then the number of resistors.

Set up 11 variables (one for R and 10 for the r1 to r10, you might want to use an array for the individual resistances)

(The following will be in pseudo-code)

n is the storage variable for the number of resistances, sp = 0 ...