Question: data.txt 10 15 10 20 10 10 10 75 10 75 10 10 25 34 15 65 75 5 5 37.5 5 37.5 5 5

 data.txt 10 15 10 20 10 10 10 75 10 75

data.txt

10 15 10 20 10 10

10 75 10 75 10 10

25 34 15 65 75 5

5 37.5 5 37.5 5 5

2 5 12 24 84 34

6 5 15 24 12 42

1 7.5 1 7.5 1 1

40 100 10 5 25 30

2 15 2 15 2 2

25 25 25 25 25 25

35 20 10 15 5 20

The electric circuit shown in the figure below is designed by specifying values for the six resistances R1 through R. 2 15 V 2 V The figure indicates that the output voltage of the circuit must be 15 Volts when the input voltage is 2 Volts Consequently, the circuit will operate correctly only when the six resistances satisfy the equation (R+R4)R,R An input file "data.txt" (download t from Blackboard) contains several proposed designs for the circuit. Each line of the file provides the six resistances listed in order. Some of the designs may not be correct. 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 good designs to a file named good.txt, and displays the list of bad designs on the console Sample Run: C:\PathNae> java CircuitApp data.txt Application description goes here (this is a sample...you need to provide your own) Reading filename: data.txt Saving good designs to good.txt The following are bad designs: 10 15 10 20 10 10 25 34 15 65 75 5 2 34 2 24 25 25 12 24 8434 15 24 12 42 25 30 40 100 10 5 25 25 25 25 25 25 35 20 10 15 5 2D

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!