CIT 591 Makeup: Name That Number
Fall 2008, David Matuszek

Purpose of this assignment:

General idea of the assignment:

Extend the assignment to handle numbers between 0 and 999999 (nine hundred ninety nine thousand nine hundred ninety nine).


Exactly the same instructions as before, except that the nameOf will handle a larger range of numbers.

String nameOf(int number)
Given any number in the range 0 to 999999, return a String of words representing that number. Words must be separated by exactly one space. The string returned must be all lower case, and must not begin or end with a space, newline, or other whitespace character. Nothing should be printed as a result of calling this method.
As before, your program will be tested with JUnit. We will use the same unit tests that were posted, plus some additional tests to handle the extended range.


For each JUnit test which you failed before, you lost 10 points. For each of those tests which you pass this time, we will restore 8 of those points. If you fail the same test again, it will not change your grade.

If you fail the additional tests (for numbers greater than 9999), you will again lose 10 points for each failed test. However, we will not reduce your grade below what it was before.

You cannot regain the points for other problems, for example, bad formatting. However, you should make some attempt to fix those problems.

You had a partner for the Number Namer assignment. This makeup assignment, however, should be done by you alone. Do not work with a partner.

Due date:

Your program is due before midnight, Wednesday October 29. Zip up the entire directory for this project, and submit via Blackboard.