What am I missing in this formula? : <p>I cannot figure out why this formula is resulting in 0. The code will compile, but when I ask it to return the result of 'bloodAlc' it always says 0. I have checked for int and doubles, but as far as I know, all of the return data should be doubles.</p>

<pre><code>    #include&lt;iostream&gt;
    #include&lt;fstream&gt;
    #include&lt;string&gt;
    #include "Input_Validation_Extended.h"

int main () {
using namespace std;

ifstream qFile ("Final.txt");
string qLine;

while (!qFile.eof() ) {
    getline (qFile, qLine);
    cout &lt;&lt; qLine &lt;&lt; endl;

} 
qFile.close();

char gender;
double genderConst, weight, percentAlc, hours, ounces, bloodAlc, alcType;
double beer, wine, spirits; 
weight = 0;
hours = 0;
ounces = 0;
bloodAlc = 0.0;
cout &lt;&lt; "Please enter your weight in pounds: \n";
cin &gt;&gt; weight;

cout &lt;&lt; "Please enter your gender: \n";
cin &gt;&gt; gender;

cout &lt;&lt; "Please enter the amount of hours you have been drinking: \n";
cin &gt;&gt; hours;

cout &lt;&lt; "How many drinks have you had: ";
cin &gt;&gt; ounces;

cout &lt;&lt; "Please choose A, B, or C for the type of beverage you are enjoying: ";
cin &gt;&gt; alcType;

if (gender == 'F' || gender == 'f')
{
    genderConst = .66;
}
else if (gender == 'M' || gender == 'm')
{
    genderConst = .73;
}   
if (alcType == 'A' || alcType == 'a')
{
beer = (12.0 * ounces);
bloodAlc = ((beer * 5.14) / (weight * genderConst)) - (.015 * hours);
}
else if (alcType == 'B' || alcType == 'b')
{
wine = (5.0 * ounces);
bloodAlc = ((wine * 5.14) / (weight * genderConst)) - (.015 * hours);
}

 cout &lt;&lt; "Your BAC is: " &lt;&lt; bloodAlc;

return 0;
}
</code></pre>
