Part (a) of the figure below shows a symbolic representation of an electric

Chapter 10, Problem P10.17

(choose chapter or problem)

Part (a) of the figure below shows a symbolic representation of an electric circuitcalled an amplifier. The input to the amplifier is the voltage vi and the output is thevoltage vo. The output of an amplifier is proportional to the input. The constant ofproportionality is called the gain of the amplifier.Parts (b), (c), and (d) show schematics of three specific types of amplifier: theinverting amplifier, noninverting amplifier, and voltage divider amplifier. Each ofthese three amplifiers consists of two resistors and an op amp. The value of the gainof each amplifier depends on the values of its resistances. In particular, the gain, g, ofthe inverting amplifier is given by gRR = 21. Similarly the gains of the noninvertingamplifier and voltage divider amplifier are given by gRR= + 1 21 and gRR R = +21 2,respectivelyWrite a C++ program that represents the amplifier as a base class and represents theinverting, noninverting, and voltage divider amplifiers as derived classes. Give thebase class two virtual functions, get_gain and a get_description function that returns astring identifying the amplifier. Each derived class should have a constructor withtwo arguments, the resistances of the amplifier.The derived classes need to override the get_gain and get_description functions of thebase class.Write a main function for the C++ program that demonstrates that the derived classesall work properly for sample values of the resistances.

Unfortunately, we don't have that question answered yet. But you can get it answered in just 5 hours by Logging in or Becoming a subscriber.

Becoming a subscriber
Or look for another answer

×

Login

Login or Sign up for access to all of our study tools and educational content!

Forgot password?
Register Now

×

Register

Sign up for access to all content on our site!

Or login if you already have an account

×

Reset password

If you have an active account we’ll send you an e-mail for password recovery

Or login if you have your password back