1234567891011121314151617181920
double getSales(string division) { double qSales=0; cout<<"\nWhat is the total quarterly sales of "<<division<<":$ "; cin>>qSales; while (qSales <= 0.00 || cin.fail()) { cout << "Please Enter a Posive number." << endl; cout << "\nEnter another number: $ "; cin >> qSales; } return qSales; }