Write a C++ Windows-console program that calculates the equivalent resistance (R), the equivalent capacitance (C), the average resistor value, and the average capacitor value given by the configuration depicted in Fig. 1.
Requirements:
The program will first greet the user with a text-based depiction of Fig. 1. Use the cout command and different characters and spacing to achieve this; there is no right or wrong way of doing this, just come up with the best representation you can.
The program will be able to handle any real resistor and capacitor values entered by the user. The program will prompt the user to enter the values for R1, R2, R3, C1, C2, and C3 accordingly. The program will ask for resistor values in ohms (Ω) and capacitor values in microfarads (μF).
The program will then calculate the equivalent resistance (R) using the formula:
1/R = 1/R1 + 1/R2 + 1/R3
The program will also calculate the equivalent capacitance (C) using the formula:
C = C1 + C2 + C3
The average resistor value (R_avg) will be calculated by taking the sum of R1, R2, and R3 and dividing it by 3.
The average capacitor value (C_avg) will be calculated by taking the sum of C1, C2, and C3 and dividing it by 3.
The program will print the results to the user, displaying the units in the results. If a unit's special symbol is not available, you may spell it out.
Fig. 1:
```
R1
R2
R3
C1
C2
C3
```