#include #include using namespace std; void GiveChanges (double change) { int dollar, cents, quarters, dimes, nickles; cout.unsetf (ios::floatfield); // floatfield not set cout.setf (ios::fixed); //, std:: ios::floatfield); cout.precision(20); cout <<"Changes to give:"<> selectionCode >> selectAmt; //update the total amount due if (selectionCode!='Q'){ switch (selectionCode) { case 'M': amountDue += selectAmt * PRICE_MEDIA_PIZZA; break; case 'L': amountDue += selectAmt * PRICE_LARGE_PIZZA; break; case 'S': amountDue += selectAmt * PRICE_SMALL_DRINK; break; case 'D': amountDue += selectAmt * PRICE_MEDIUM_DRINK; break; case 'T': amountDue += selectAmt * PRICE_LARGE_DRINK; break; default: cout <<"Invalid selection code: " <> amountReceived; // call GiveChanges( ) to display the changes, for example, suppose variable GiveChanges (amountReceived-amountDue); }