#include void ice_cream_division(int number, double total_weight); //Outputs instructions for dividing total_weight ounces of ice cream //among number customers. If number is 0, nothing is done. int main( ) { cout << "Suppose you divide 100 ounces of ice cream" << " among 12 people.\n"; ice_cream_division(12, 100); return 0; } //Definition uses iostream.h: void ice_cream_division(int number, double total_weight) { double portion; if (number == 0) return; portion = total_weight/number; cout.setf(ios::fixed); cout.setf(ios::showpoint); cout.precision(2); cout << "Each one receives " << portion << " ounces of ice cream." << endl; }