Hi guys i am new here
i want to help about:
how to convert digit(number) into word
for example:
Enter a number:123
Output:one two three
loody
0
Newbie Poster
Recommended Answers
Jump to PostThere are lots of people here who will freely give their time to help you become the best Java programmer you can be. There's nobody here who is interested in doing your homework for you.
DaniWeb Member Rules (which you agreed to when you signed up) include:
"Do provide evidence …
Jump to PostStart by working out the logic in ordinary English forget the Java for now.
Write down a few numbers, work out the correct answers, write doen how you did that. Then translate that into Java.
Jump to PostThat's a good start. Given the irregular pattern for the teens it nay be worth carrying on with that up to 19
Jump to Postand, depending on how far it must go, add logic for thousands and hundreds.
it's not at all difficut to implement, if you just want:
213
to be translated into
two one three
you can just print the elements of the array you already have by using the numbers-to-translate as …
Jump to Postehm .. if you don't need to take into account hundreds/thousands, I 've told you in my previous reply how to solve it, using the array you have, and with a lot less code than this.
don't ignore answers, go through them and ask about them if you don't understand …
All 21 Replies
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
loody
0
Newbie Poster
loody
0
Newbie Poster
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
stultuske
1,116
Posting Maven
Featured Poster
loody
0
Newbie Poster
loody
0
Newbie Poster
stultuske
1,116
Posting Maven
Featured Poster
loody
0
Newbie Poster
loody
0
Newbie Poster
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
loody
0
Newbie Poster
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
loody
0
Newbie Poster
loody
0
Newbie Poster
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
loody
0
Newbie Poster
loody
0
Newbie Poster
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
loody
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.