Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

design a class Numbers that can be used to translate whole dollar amounts in the

ID: 3620556 • Letter: D

Question

design a class Numbers that can be used to translate whole dollar amounts in the range 0 through 9999 into an english descritiption of the number. for example, 713 would be translated in the string ''seven hundred thirteen'' and 8203 would be ''eight thousand two hundred three''. the class should have a single interger member variable:

int number;
and a static array strings that specify how to translate key dollar amount into the desire format. for example, you might use static strings such as
char lessthan20[20][25] = {"zero", "one", ......."eighteen", "nineteen"};
char hundred[] ={"hundred";
char thousand[] = "thousand";
any help is highly appreciated

Explanation / Answer

please rate - thanks