Skip to content

technolaji/NumberConversion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Technical Exercise:

Create code to take a number input and return the equivalent in British English words e.g.: 1 = one 21 = twenty one 105 = one hundred and five 56 945 781 = fifty six million, nine hundred and forty five thousand, seven hundred and eighty one etc. up to 999,999,999

Assumptions

  1. Arguments passed in must be a number
  2. Number must be less than 999999999
  3. Number cannot contain comma's
  4. Number cannot be a decimal
  5. Can only enter one number at a time

####Implementation ###

Special cases ...

1 = one 2 = two 3 = three 4 = four 5 = five 6 = six 10 = ten 11 = eleven 12 = twelve 13 = thirteen 14 = fourteen 15 = fifteen 20 = twenty 30 = thirty 40 = forty 50 = fifty 60 = sixty 70 = seventy 80 = eighty 90 ninety 100 = hundred 1000 = thousand 10 000

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages