small console app to calculate change.

May 25 2010 6:46 AM
i need the code for a small app that will take input and display the change to be given.
it is suppose to look something like this...

What is the Cost of the goods?
111.12
How much was received?
2000

YOUR CHANGE IS:

HUNDRED RANDS : 8
       FIFTY RANDS : 1
  TWENTY RANDS : 1
         TEN RANDS : 1
        FIVE RANDS : 1
       TWO RANDS :  1
        ONE RANDS : 1
           50 CENTS : 1
           10 CENTS : 3
             5 CENTS : 1
             2 CENTS : 1
             1 CENTS : 1

Rands being the currency we use in my country..

Please help!!!



Answers (2)