import math
#variable declaration
N = 45; #reading
t = 10*10**-3; #Gated period in ms
#calculations
f = N/float(t);
#result
print'frequency of the of the system = %3.2f'%f,'Hz';
import math
#variable declaration
n = 3; #number of full digits on 3 1/2 digit display
fs = 1; #voltage in V
fs1 = 10; #voltage in V
r = 2; #voltage reading in V
fs3 = 5;
#calculation
R = 1/float((10)**n); #resolution
R1 = R*fs; #resolution for full scale range of 1V
R2 = fs1*R; #resolution for full scale range of 10V
LSD =fs3*R; #digit in the least siginificant digit in V
e = (((0.5)/float(100))*(r))+LSD; #total possible error in V
#result
print'Resolution %3.4f'%R;
print'Resolution for full scale range of 10V = %3.2f'%R2,'V';
print'possible error = %3.3f'%e,'V';
import math
#variable declaration
n = 4; #numberof full digits
fs = 1; #full scale range of 1V
fs = 1; #full scale range of 10V
#calculation
R = 1/float((10)**n); #resolution
R1 = fs*R; #resolution on 1V in V
R2 = fs1*R; #resolution on 10V in V
#result
print'Resolution = %3.4f '%R;
print'There are 5 digit faces in 4 1/2 digt display ,so 16.95 would be displayed as 16.950';
print'Resolution = %3.4f '%R1;
print'Hence 0.6564 will be displayed as 0.6564';
print'Resolution = %3.4f '%R2;
print'Hence 0.6564 will be displayed as 0.656';