Assume that price is an integer variable whose value is the price (in US currency) in cents of an item. Assuming the item is paid for with a minimum amount of change and just single dollars, write anexpression for the amount of change (in cents) that would have to be paid.

LANGUAGE: JAVA

CHALLENGE:
Assume that price is an integer variable whose value is the price (in US currency) in cents of an item. Assuming the item is paid for with a minimum amount of change and just single dollars, write anexpression for the amount of change (in cents) that would have to be paid.

SOLUTION:

LANGUAGE: JAVA

CHALLENGE:
Assume that price is an integer variable whose value is the price (in US currency) in cents of an item. Assuming the item is paid for with a minimum amount of change and just single dollars, write anexpression for the amount of change (in cents) that would have to be paid.

SOLUTION:

price % 100