#Given
Em=0.5
Ec=1
#Calculation
Emax=Ec+Em
Emin=Ec-Em
Ma=(Emax-Emin)/(Emax+Emin)
#Result
print"The modulation index is",Ma
#Given
L=3.6*10**-3 #H
C=2.5*10**-12 #F
Fm=15 #KHz
#Calculation
import math
Fc=1/(2*math.pi*math.sqrt(L*C))*10**-3
S=Fc+Fm
S1=Fc-Fm
#Result
print"Frequency of upper sideband is",round(S,0),"kHz"
print"Frequency of lower sideband is",round(S1,0),"kHz"
#Given
Fm=3.2 #kHz
Fc=84*10**3 #kHz
A=96 #kHz
#Calculation
Mf=A/Fm
M1=Fc-Fm
M2=Fc+Fm
#Result
print"(a) Frequency modulation index is",Mf
print"(b) Frequency range of the modulated wave is",round(M1*10**-3,3),"*10**3 MHz","to",round(M2*10**-3,3),"*10**3 MHz"
#Given
A=1
B=2
C=0
#Calculation
Q1=(A*B**0)+(C*B**1)+(C*B**2)+(C*B**3)
Q2=(C*B**0)+(A*B**1)+(C*B**2)+(C*B**3)
Q3=(C*B**0)+(C*B**1)+(A*B**2)+(C*B**3)
Q4=(C*B**0)+(C*B**1)+(C*B**2)+(A*B**3)
Q5=(A*B**0)+(C*B**1)+(C*B**2)+(A*B**3)
Q6=(A*B**0)+(C*B**1)+(A*B**2)+(A*B**3)
#Result
print"Input voltage 0001 is",Q1,"V"
print"Input voltage 0010 is",Q2,"V"
print"Input voltage 0100 is",Q3,"V"
print"Input voltage 1000 is",Q4,"V"
print"Input voltage 1001 is",Q5,"V"
print"Input voltage 1101 is",Q6,"V"
#Given
A=2
N=32
#Calculation
Z=A**N
#Result
print"Number of quantisation levels is",round(Z*10**-9,1),"*10**9"
#Given
S=16
Q=8000
#Calculation
N=math.sqrt(S)
W=Q*N
#Result
print"The bill rate for a signal is",W,"bill s**-1"