Unformatted text preview: no sales %tax. The customer is only purchasing one item and is using American currency. % Input: % P=product price in dollars %c=cash supplied by customer in dollars % Output: %D=the change portion in dollars %q=the change portion in quarters %d=the change portion in dimes %n=the change portion in nickels %p=the change portion in pennies While c is greater than or equal to one dollar, divide it by 1. That will be dollars. So if I have 5.32 divide by 1, display no decimal points While c is greater than or equal to 25 cents, divide it by 25 that will be quarters While c is greater than...
View Full Document
- Fall '11
- United States dollar, change portion