Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Calculator to calculate the resistance of a circuit

ammelto/ResCalculator

Repository files navigation

ResCalculator

Calculator to calculate the resistance of a circuit

=============

Usage: java circuitmain

Input file needs to be in the same directory as the .class

'#' will be read as comments

List the series and parrallel resistances in order as they appear in the ciruit

Define the type of the circuit followed by a '{' on the next line and close it with '}'

Label each resistor as 'resistor '

Example input file:


  # circuit specification
  series # series circuit
  {
  parallel # parallel circuit
  {
  resistor 3.2, # simple resistor
  resistor 4.1
  },
  series
  {
  resistor 1.0,
  parallel
  {
  resistor 1.0,
  resistor 2.0
  },
  series 
  {
  resistor 3.2,
  resistor 4.0
  }
  }
  }

About

Calculator to calculate the resistance of a circuit

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages