CS1440 - Extra Lab (2)

Objective of this extra Lab is:
To review the concepts you learned in Chapters 1 through 4

You need to create the directory extra2 under directory 1440, change to that directory, and complete your work there.

Activity (1):
Suppose you want to write a program to help a cashier figure out the change that is due to a customer.  There are several different ways the cashier can make the change using different coins or bills.  I know everyone is trying to avoid pennies, so letís assume, up front, that change with all pennies is not allowed unless the amount of change is less than 5 cents.  Letís also assume, for now, that the total amount of change is not more than $5, i.e., the cashier works only with change amount of less than $5.  Your program should only recommend one possible configuration.

Assume that the cashier can use pennies, nickels, dimes, quarters, and dollars.  I think that if you ask, any cashier will tell you that you should start from larger denominations (coins or bills) and work toward smaller denominations when you make the change.

You are expected to use function(s) in your program.  Your program will be graded based on correctness of computations, appropriate use of function(s), the creativity that you have shown in creating a good program, and programming style. If you haven't re-read the style guidelines recently, maybe you should look at the CS 1440 Program Style Guidelines.

The amount of change, which will be read from the keyboard.
Example:  2.32 (Note this means $2.32)

The configuration of the change due to the customer which will be displayed

Example of one possible output for the $2.32 is:
2 dollar bills, 1 quarter, 0 dimes, 1 nickel, 2 pennies

Your program should:

With these changes the sample output above would read:
    2 dollar bills, 1 quarter, 1 nickel, 2 pennies
Post Lab
This extra lab does not have a post lab, however your instructor will give you an assignment that should be completed by the due date that will be given on the assignment.