No More Pennies!

Effective February 4, 2013, the Canadian Mint stopped producing pennies. After this date, businesses were encouraged to stop giving pennies as change and to round the transaction prices according to the rules specified here.

Assignment

Write a program that prompts for the transaction price, the amount given, and outputs the change, according to the rules specified at the site linked above.

The program must loop until "0" (zero) is entered as the transaction price.

Submit to the relevant handin folder.