#Input data
MSR=3.2 #Main scale reading of cylindrical rod in cm
NCD=7 #Number of coinciding Vernier Scale division
Lc=0.1*10**-3 #Least count of the instrument in mm
#Calculation
DOR=MSR+(NCD*Lc) #Diameter of the rod
#Output
print("Diameter of the rod= ",round(DOR,3),"cm")
#Input data
MSR=5.3 #Main scale reading of prismatic bar in cm
NCD=6 #Number of coinciding Vernier Scale division
Lc=0.1*10**-3 #Least count of the instrument in mm
Ne=(-0.2*10**-3) #Instrument bears a nagative error in mm
#Calulation
Mlb=MSR+(NCD*Lc) #Measured length of the bar in cm
Tlb=(Mlb-(Ne)) #True length of the bar in cm
#Output
print("Measured length of the bar= ",round(Mlb,3),"cm")
print("true length of the bar= ",round(Tlb,3),"cm")
#Input data
import math
L=100 #Height of sine bar
theta=12.8 #angle in degree minut
#Z=sin(theta)=0.22154849
Z=0.22154849
#Calculation
b=Z*L #Height required to setup in mm
#Output
print("Height required=",round(b,4),"mm")