0

i have got a program to convert a double value to a string.
eg==INPUT= 3.65
OUTPUT=three point six five.
can anyone give the solution.

3
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by Megha SR
0

I guess you missed this on the main forum page:

don't expect quick solutions to your homework. We'll help you get started and exchange algorithm ideas, but only if you show that you're willing to put in effort as well

Edited by JamesCherrill: n/a

0

You can't convert 3 to 'three' directly. You need to write a method to examine each character and return an appropriate value.

e.g.
if(input is equal to 1)
return [appropriate String]

Then take the returned values and print them.

Edited by coil: n/a

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.