Results 1 to 8 of 8
- 11-28-2011, 07:34 PM #1
Member
- Join Date
- Aug 2011
- Posts
- 10
- Rep Power
- 0
Need a Help to write a program like write a word for the given number
You are given a number of any length and you need to display it in words.
Exapmle : 123456 : One lack Twenty three thousand four hundred and fifty six. For more details ConditionsLast edited by DarrylBurke; 01-23-2012 at 08:32 PM.
- 11-28-2011, 07:37 PM #2
Re: Need a Help to write a program like write a word for the given number
That is absolutely not how this works. This isn't a homework service, and asking other people to do your work for you is extremely rude. If you actually want help, please read the link in my signature on asking questions the smart way.
How to Ask Questions the Smart Way
Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!
- 11-28-2011, 07:40 PM #3
Re: Need a Help to write a program like write a word for the given number
One hundred and twenty three thousand four hundred and fifty six.
- 11-28-2011, 07:43 PM #4
Senior Member
- Join Date
- Nov 2010
- Posts
- 210
- Rep Power
- 3
Re: Need a Help to write a program like write a word for the given number
Any length? As in Graham's number factorial?
- 11-30-2011, 02:18 PM #5
Member
- Join Date
- Nov 2011
- Location
- Schijndel, Netherlands
- Posts
- 12
- Rep Power
- 0
Re: Need a Help to write a program like write a word for the given number
Use an hashmap.
Fill it with numbers 1-9 and with the corresponding "string".
Split the given number, and get the corresponding "string" from the hashmap.
agreed, anyway this should do the trick, you can do the coding yourself ;)
Originally Posted by KevinWorkman
- 11-30-2011, 02:36 PM #6
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,405
- Blog Entries
- 7
- Rep Power
- 17
- 11-30-2011, 06:51 PM #7
Senior Member
- Join Date
- Nov 2010
- Posts
- 210
- Rep Power
- 3
Re: Need a Help to write a program like write a word for the given number
Presumably a misspelling of lakh.
- 11-30-2011, 06:58 PM #8
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,405
- Blog Entries
- 7
- Rep Power
- 17
Re: Need a Help to write a program like write a word for the given number
When people rob a bank they get a penalty; when banks rob people they get a bonus.
Similar Threads
-
Find a text in a file and write a word following this word
By lemontree45 in forum New To JavaReplies: 3Last Post: 08-30-2011, 04:44 PM -
Write a given number of lines and chararcters of a selected char
By KAS in forum New To JavaReplies: 4Last Post: 03-21-2011, 09:49 PM -
trying to write a program for hangman word game
By durdanto in forum New To JavaReplies: 1Last Post: 02-12-2011, 02:53 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks