Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Develop a C++ program for a DC circuit. The circuit has one power supply and two

ID: 1798038 • Letter: D

Question

Develop a C++ program for a DC circuit. The circuit has one power supply and two resistors. The resistors are connected either in series or parallel. You need to design the UML class diagram and its implementation. Design test cases and test the program.
This is an individual project.
Sample of run 1 :
Type the name of the circuit:
Series
Type the voltage of the power supply:
20
Type the value of first resistor:
10
Type the value of second resistor:
10
The current in the circuit is : 1

Sample of run 12 :

Type the name of the circuit:
parallel
Type the voltage of the power supply:
20
Type the value of first resistor:
10
Type the value of second resistor:
10
The current in the circuit is : 4

Explanation / Answer

#include #include class series { public : float r1,r2,r,V; void resistance_ser(float r1,float r2) { r = r1+r2; cout