using c++ please
Functions Your code must include the following functions: printIntroMenu () that displays 1 -> Login c-> Create New Account q -> Quit printMainMenu() should carry out the following 1. Select either a low pass or high pas filter 2. Assign Resistor and capacitor values. 3. Output the values of all key parameters. 4. Quit the program. start() that displays Please select an option from the menu below: o Introduction menu. Do this by calling the function you created earlier, printIntroMenu (). o Program stops and waits for the user to make their selection. Use the cin >> function to accomplish this step. A switch statement that accomplishes the following: If the user types the character I then the function login() is called If the user types the character cu then the function create Account is called. If the user types a your program will terminate by calling a function exit(0. login() that logs the existing user to the program. createAccount (that creates the user account . . selectFilter() that gets the filter selection (low pass or high pass) from the user assignValues() that asks the user to enter resistors and capacitor values (RA, RB, CA, Cg). output.KeyParameters () that calculates and displays all key parameters for the selected filter: o Attenuation, Closed Loop Gain, the corner frequency, the quality factor and the maximum achievable quality factor. output KeyParameters() is called before the assignValues (), it should use default values or print an error message. If Active Filters Filters are circuits that can pass signals with certain selected frequencies while rejecting signals with other frequencies. The Sallen-Key is one of the most common configurations for a second order (two-pole) filter. It is also known as a VCVS (voltage-controlled voltage source) filter. A low-pass and high pass version of the Sallen-Key filter is shown figure 1. Two-pole low-pass circuit Ha RR Vw w CH RA ov | || w ER w RE Key Parameters: Attenuation Closed Loop Gain 1 B Ad R2 BE R2 + RI The corner frequency 1 fc = 20/R, R CAC The Quality factor The maximum achievable quality factor is when RAR CAC Q = Ca(R+R) Qmax 1 CA 2,1C If and only if R = Rg Two-pole high-pass circuit RA CA Cg VO RM Voo R2 Key Parameters: Attenuation Closed Loop Gain 1 B R2 R, +R BE The corner frequency 1 la = 21, RRECACE The Quality factor The maximum achievable quality factor is when Q 1 R VR, RB CAC C(RA+RB) Qmax il 2 RA If and only if =