CIS 10: Introduction to Programming

Project D

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;
}
When you're satisfied with your work, submit it via the CATE form for Project D.

Legend: method/function keyword literal

2007/09/27