CSC 101
Updates and Corrections to Handouts
from Weeks 5 and 6
9PM May 9to
9PM May 10
tocout << ...
E.g., the first cout changes fromcout << " " << ...
cout << dollars << " dollar" << endl;
These changes make the "After" version of the program correctly output four spaces of indentation in front of each output line, per the specs.cout << " " << dollars << " dollar" << endl;
////
//
// Function ComputeDenomination computes the amount of change due in a
// particular denomination and updates the change due by subtracting the
// computed amount. The inputs are an empty integer amount variable, an
// integer total amount variable, and the integer value of the denomination.
// The outputs are the computed amount in the first parameter and the updated
// change in the second parameter.
//
////
void ComputeDenomination(
int& amount, // Amount of denomination
int& change, // Total change due
int denomination_value // Value in cents of the denomination
);