Calculation of Gross and Net Calorific Value

#  Credits   Name: ANUPRIYA R

#  HCV - Higher and Gross Calorific Value
#  LCV -  Lower or Net Calorific Value
# Compatible with python 3.x.x

c=float(input("enter value of carbon in %: "))
h=float(input("enter value of hydrogen in %: "))
s=float(input("enter value of sulphur in %: "))
o=float(input("enter value of oxygen in %: "))
HCV=(8080*c+34500*(h-o/8)+2240*s)*1/100
LCV=(HCV-0.09*h*587)
print ("Higher calorific value of sample is ",HCV)
print("Lower calorific value of sample is ",LCV)
     

No comments: