Question: Application 1: Calculate the individual branch currents and total current drawn from the power supply for the following set of resistors connected together in a


Application 1: Calculate the individual branch currents and total current drawn from the power supply for the following set of resistors connected together in a parallel combination. The supply voltage is common to all the resistors in a parallel circuit. Calculate the individual branch current by using Ohm's Law as follows: 1 11 + 12 + 13 + 14 IT R2 R4 An input file "data.txt" (download it from Blackboard) contains several designs for the circuit. Each line of the file provides the source voltage and four resistances listed in order. Some of the designs may generates negative current values. Write a program that reads the input file (the user may use a different file, so don't hard code it in the application, but instead read it as an argument to the application from the command line), copies the designs that regenerate a positive current to a file named forwardCurrent.txt, and displays the list of designs with negative current on the console A sample output C: Fal12018 Coures S0FE2710 Code>java -p CircuitApplication data txt Reading filename data.txt Saving positive current to forwardCurrent.tx The following designs have negative current -10.0 10.0 -120.0 100.0 200.0 150.0 30.0 -40.0 34.0 20.0 10.0 10.0 22.0 32.0 12.5
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
