#variable declaration
c=-40.0 #Temp in degree Celcius
#calculations
k=c+273
F=((9.0/5.0)*c)+32.0
R=((9.0/5.0)*c)+492.0
#Result
print('\nK=%d°K' %k)
print('\nF=%d°F' %F)
print('\nR=%d°R' %R)
#varable Declaration
span=1000.0 #given value of span in °C
accuracy=1.0/100.0 #1% accuracy
#calculations
err=span*accuracy
max_scale=1200.0
Range_instr=max_scale+span
meter_reading=700.0
per_of_err=(err/meter_reading)*100.0
#result
print('(a)\nAs error can be either positive or negative')
print('\n the probable error at any point on the scale =± %d°C'%err)
print('\n(b)\nRange of the Instrument = %d°C'%Range_instr)
print('\n(c)\nPercentage of Error = ± %.2f%% '%per_of_err)
#variable declaration
resi_per_leg=5.0 # lead wire resistance per leg in Ohm
temp_coeff=0.385 # Temperature coefficient of Pt 100 RTD in ohms/°C
#calculation
R_due_to_leadwires=2*resi_per_leg
err=R_due_to_leadwires/temp_coeff
err =round(err,0)
temp_obj=200.0
temp_measured=temp_obj+err
per_of_err=((temp_measured-temp_obj)/temp_obj)*100.0
#Result
print('(a)\nThe contribution of 10 ohms lead wire resistance')
print('to the measurement error = %d°C' %err)
print('\n(b)\nPercentage of Error = %d%%' %per_of_err)
#variable declaration
temp=2.022 #Millivolt corresponds to reference junction temp 50°C
millivolt_cor=37.325 #Millivolt corresponds to reference junction temp 900°C
#calculation
op=millivolt_cor-temp
#result
print('Millivolt output available = % .3f' %op)
#variable declaration
millivolt_cor=2.585 #Millivolt corresponds to reference junction temp 50°C
pot_reading=30.511 #reading on pot
#calculation
corrected_millivolt=pot_reading+millivolt_cor
#result
print('Temperature correspond to %.3f mV from the table = 600°C' %corrected_millivolt)
#variable Declarion
ref_jun=100.0 #reference junction temp.
mV_100=0.645 #voltage at 100°C
mV_1000=9.585 #voltage at 1000°C
mV_1200=11.947 #voltage at 1200°C
#calculation
op1=mV_1000-mV_100
op2=mV_1200-mV_100
#result
print('Millivolt to be fed checking 1000 C = %.3f mV'%op1)
print('\nMillivolt to be fed checking 1200 C = %.3f mV'%op2)
#variable declaration
E_rec_pyro=0.95*0.85 #Energy received by pyrometer
#calculation
T=1100.0/E_rec_pyro
#result
print('Pyrometer reading T = %.2f°C'%T)
#(a)
#variable declaration
hot1_mV=41.29 # Millivolt corresponds to hot junction temp
cold1_mV=2.022 # Millivolt corresponds to cold junction temp
#calculation
op1=hot1_mV-cold1_mV
#(b)
#variable declaration
hot2_mV=33.096 #Millivolt corresponds to hot junction temp
cold2_mV=2.585 #Millivolt corresponds to cold junction temp
#calculation
op2=hot2_mV-cold2_mV
#(c)
#variable declaration
hot3_mV=11.947 #Millivolt corresponds to hot junction temp
cold3_mV=0.299 #Millivolt corresponds to cold junction temp
#calculation
op3=hot3_mV-cold3_mV
#result
print('(a)\nOutput Millivolt = %.3f'%op1)
print('\n(b)\nOutput Millivolt = %.3f'%op2)
print('\n(c)\nAs the wrongly formed thermocouples at J1 and J2 will always oppose')
print('the main millivolt output, the net output will be lower than normal value.')
print('Output mV<%.3f'%op3)
#variable declaration
Rl_ind=250.0 #load resistor for indicator
Rl_rec=250.0 #load resistor for recorder
load_allowable=600.0 #allowable load with load independency
#calculation
load_connected= Rl_ind+Rl_rec
max_load_controller=load_allowable-load_connected
op_cont=600.0
total=Rl_ind+Rl_rec+load_allowable
extra_load=total-op_cont
#result
print('(a)\nThe max load to the controller = %d ohms'%max_load_controller)
print('\n(b)\nExtra Load = %d ohms'%extra_load)
print('\nAdditional Power Supply voltage required = 10 V')
print('\nMinimum Power Supply Voltage = 34 ')