A.C. Circuits.Write a program to compute the impedance of A.C. circuits with arbitrary numbers of resistors, capacitors and inductors connected in series or parallel.
Minimum class design specification:
- Abstract base class for components
- Derived classes for: resistor, capacitor, inductor
- Pure virtual functions to set and get frequency, get impedance, get magnitude of impedance and get phase difference
- Impedance is stored as a complex number object (either using your own complex class or the standard library version)
- Additionally, a generic circuit class that stores impedance for whole circuit
- Circuit class contains functions to add generic components in serial and parallel and modifies impedance accordingly
Minimum functionality:
- User can create a library of different components (stored using array of base class pointers or appropriate STL container)
- The ability to construct a circuit of arbitrary length using the component library, connecting components up in serial and/or parallel
- Code prints out magnitude and phase-shift for each component as well as for the whole circuit
Some suggestions for additional functionality
- a way to output the circuit in a slightly more visually appealing manner;
RLC 교류 회로(직병렬 혼합) 에서 임피던스구하는 소스를 만들어야되는데 처음에 직렬 병렬 한가지씩 정해서 하는건줄 알고 엄청 쉽게 생각했는데.. 직병렬 혼합이래...;; 이걸 어떻게함? 가능함??
15만원...5시간 안에 해줄수 있는형 있어?
댓글 0