Code Review
Part 1
Write a simple function:
int2english(int i)- should return the equivalent number in english words, for example: – int2english(1) => “one” – int2english(123) => “one hundred and twenty three” – int2english(123123) = “one hundred and twenty three thousand, one hundred and twenty three”
- should work for any positive integer less that 1 billion.
Part 2
Write about each of the following, explaining what they mean.
- DRY
- Unit tests
- SOA
Include the benefits to both the development cycle and also the end client.