Im trying to make a bac calculator and make a gui for it but am having issues with the math code for it.
Here's my code. Everything I input returns 0.
The BAC forumula is (150/body weight)(% alcohol/50)(ounces consumed)(0.025). Btw, I suck at math so it could be a math error....
class main():
def bac(self):
drink=raw_input("What kind of drink was it? 12oz. ([B]eer, 5oz. [W]ine, 1.25oz. [S]hot) ")
if drink=="b":
weight=raw_input("What is your Body weight in pounds? ")
w=150.0/int(weight) #body weight
q=.04/50 #beer alcohol content
z=raw_input("How many drink were consumed? ") #consumed ounces
x=0.025
bac=int(w)*int(q)*int(z)*int(x)
print bac