Page 1 of 1

Write a program that calculates the gains of CE, CB, CC amplifier circuits in C programming language. Requirements from

Posted: Sat Nov 27, 2021 10:37 am
by answerhappygod
Write a program that calculates the gains of CE, CB, CC
amplifier circuits in C programming language.
Requirements from the program are listed below.
 The program should first ask the user to calculate the gain of
CE, CB or CC configurations.
 In the second step, it should be asked which of the NPN or PNP
transistors will be used.
 In the third step, the resistance values of the circuit, the
values of the voltage sources, and the transistor parameters (β
and
VA) must be requested from the user.
 In the fourth step, the signal source resistor and the load
resistor should be requested.
 In the last step, voltage gain and current gain should be
calculated and displayed on the screen using either pi or T
models.
 The program should be written in accordance with the Single
Responsibility principle.