#given
x=1*10**6 #DSB range
y=10**(80/20.0)
#calculation
import math
z=math.sqrt(y)
df=200.0
Q=(x*z)/(4.0*df)
a=100*10**3
Q1=(a*z)/(4.0*df)
#result
print"(a) Q for 1MHz = ",Q
print"(b) Q for 100KHz = ",Q1
#given
a=3*10**6
b=3.1*10**6 #new DSB signal range
c=2.9*10**6 #new DSB signal range
#calculation
Q=(a/(b-c))
#result
print"the required filter Q is = ",Q
#given
a=455
x=2000+1 #frequency
y=2000+3 #frequency
#calculation
c=2000+a #local oscillator value
d=c-x
e=c-y
f=a-454
g=a-452
#result
print"RF =",x,"KHz", "at which first mixer input=" ,y,"kHz"
print"local oscillator value is ",c,"KHz"
print"First mixer output is",d,"to",e,"KHz" #IF amp and second mixer input
print"BFO = ",a,"KHz"
print"Second mixer output is",f,"KHz", "and audio amplifier value is =",g, "kHz"