Commit d6bf4d7e authored by Martin, Daniel (UMSL-Student)'s avatar Martin, Daniel (UMSL-Student)
Browse files

Update hw1.cpp

parent ae760637
......@@ -40,7 +40,7 @@ int main()
divison = static_cast<float>(AVG_SUGAR_CONSUMED)/GUT_FEELING;
lbs_sugar = num_people * (avg_weight * (division)+lunch_money);
//Calculate duff soda equivalent (3 lbs sugar / duff soda"
num_duff_sodas = lbs_sugar / 3;
num_duff_sodas = static_cast<int>(lbs_sugar) / 3;
//Print results
cout << "\t" << lbs_sugar << " lbs. of sugar is needed for the day" << endl;
cout << "\tThis is equivalent to " << num_duff_sodas <<" bottle(s) of "
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment