Hi, I am having a problem to convert integers into strings. For example, (I got this one from the book) it first input $1920.85, and then it converts into One thousand nine hundred twenty and 85 cents. How can I do that? Can anyone guide me how to do this, and show some simple examples? Thank you.
By the way, here is the question:
Write a program that displays a simulated paycheck
The program should ask the user to enter the date, the payee's name, and the amount of the check (as a floating point number). It should then display a simulated check with the dollar amount spelled out, as shown here:
Pay to the order of: Charlie Fontuli $1920.85
One thousand nine hundred twenty and 85 cents
Be sure to format the numeric value of the check in fixed point notation with two decimal places of precision. Be sure the decimal place always displays, even when the number is zero or has no fractional part. Use either C-strings or string class objects in this program.
Input validation: Do not accept negative dollar amounts, or amounts over $10,000