Checks contain their value written both numerically and as words. Write a program to read a positive dollar amount less than a trillion, with two decimal places, and display the amount in words.
Here is the output for 64325.28:
SIXTY FOUR THOUSAND THREE HUNDRED TWENTY FIVE AND TWENTY EIGHT/100 DOLLARS
Notice that the word "AND" only appears before the hundredths. Spelling counts! Traditional American counting rules apply.
A single line containing a dollar amount less than a trillion dollars.
A single line with the word representation of the number exactly as patterned here.