Complete Project 5 from Chapter 5 of the text. Directions are on page 294.
#include <iostream>
using namespace std;
void showInstructions();
int getCents();
void computeAndDisplay(int cents);
void computeCoins(int denomination,
int& number,
int& amountLeft);
bool again();
int main() {
int cents;
showInstructions();
do {
cents = getCents();
computeAndDisplay(cents); }
while (again());
return 0;
}
Legend: method/function keyword literal
2007/09/27