PROGRAMMING EXERCISE
Number to Words
Write a function that will take in a number up to 36 digits long and return a string expressing that number in words. For example, given 123456, the function should return One Hundred Twenty-Three Thousand Four Hundred Fifty-Six. Build a simple interface to allow this function to be tested.
Note: The "groupings" of numbers, from low to high, are named as follows: Thousand, Million, Billion, Trillion, Quadrillion, Quintillion, Sextillion, Septillion, Octillion, Nintillion, Decillion.
Download the solution for this project here.