Computing a Customer’s Change Your cousin just opened a small store and does not have the funds to buy one of those sophisticated cash registers that compute the change to return to a customer. Since he still possesses his old personal computer, he asks you to develop a program that, given an amount due and a payment, computes the change. This way he will be able to make sure that whoever he hires will not make a mistake on the change to give back to the customer. The program will compute the change repeatedly until a zero value is given to indicate termination. The change must be computed in dollar bills, quarters, dimes, nickels, and pennies, with the smallest number of coins possible. The clerk will enter the amount due in cents, the payment also in cents, and the program will return the number of dollars, quarters, dimes, nickels, and pennies to give back. The clerk will be prompted to enter the amount due and the payment by the following messages:

Enter amount due in cents (negative or zero to stop):

Enter payment in cents:

The change will be indicated in the following way:

Dollars 1

Quarters 1

Dimes 1

Nickels 1

Pennies 1

Found something interesting ?

• On-time delivery guarantee
• PhD-level professional writers
• Free Plagiarism Report

• 100% money-back guarantee
• Absolute Privacy & Confidentiality
• High Quality custom-written papers

Related Model Questions

Feel free to peruse our college and university model questions. If any our our assignment tasks interests you, click to place your order. Every paper is written by our professional essay writers from scratch to avoid plagiarism. We guarantee highest quality of work besides delivering your paper on time.

Grab your Discount!

25% Coupon Code: SAVE25
get 25% !!