input: amtToKillMouse, mouseWeight, humanWeight
output: amtToKillHuman in oz of sweetener, and in oz of soda
int main()
{
const double percentSweetenerInSoda = 0.001;
cout >> ....
cin >> amtToKillMouse >> mouseWeight >> humanWeight;
amtToKillHuman = (amtToKillMouse * humanWeight) / mouseWeight;
cout << "amt sweetener in oz to kill human is" << amtToKillHuman;
cout << "amt soda in oz to kill human is" << amtToKillHuman / percentSweetenerInSoda;
return 0;
}
Wednesday, July 7, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment