CS 1323 Honors, Fall 1996

Individual Project 7


Due Wednesday, November 13, 4:30pm

What to Hand In

Project Description

Write a program that initializes a variable to the amount, in pennies, of a small purchase ($1.00 or less), computes and assigns to other variables, the number of quarters, dimes, nickels, and pennies required in the change returned from a dollar bill tendered, and prints appropriately labeled reports of the amount of the purchase and the number of coins of each denomination returned in change.

The change will include at most three quarters, at most two dimes, at most one nickel, and at most four pennies. These amounts must be computed with formulas that would yield correct results for any purchase amount up to a dollar.

Ground Rules