how do i display a roman numerals from ordinary numbers??

my problem is this...please help. i need a algorithm and solution,,

Write a program that accepts an ordinary number and outputs its equivalent roman numerals.

The ordinary numbers and their equivalent Roman numerals are given below..

Ordinary Numbers = Roman Numerals

1=I

5=V

10=X

50=L

100=C

500=D

100=M

SAMPLE Input/output Dialogue:

Enter a number:2968(Input number)

MMCMLXVIII(Output)

Note that the maximum input number is 3000.

please i need a algorithm and solution as simple as can..note that i am only a basic student/learner of c++..

my email is <<<snipped>>>

thank you!