Question: need this in C++ 4. ALDCC 1. A data structure has to be accepted by a laboratory instructor before implementation. 2. The source code has

 need this in C++ 4. ALDCC 1. A data structure has

need this in C++

4. ALDCC 1. A data structure has to be accepted by a laboratory instructor before implementation. 2. The source code has to be split into header (,h) and source (,cpp) files. 3. All functions have to be commented in the doxygen style. 4. Any permutation of command line switches has to be handled. 5. The program executed without parameters prints a short user's manual. 6. The program has to accept slightly imperfect input data. Write a program for analysis of linear direct current circuits. Elements allowed in the circuits are: voltage and current forces and resistors. A circuit is described in a text file in the following way. Each line of the file describes only one element as (type) (node number) (node number) (value) (type) has values: E - voltage source, I - current source, R - resistor. Nodes are numbered with integer numbers. Values of elements are real numbers. A circuit may have any number of elements. The circuit depicted above is described in a file as: R 422 I 542 R 5.34 E 325 E 311 R 121 R 3115 The output file holds all elements of a circuit, voltage and current, and power consumption for each element. The program is run in command line with switches: -i. input file -o output file Running the program with no parameters prints a short help how to use the program

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!