The class should have a single integer member variable:
int number ;
and a collection of static string members that specify how to translate dollar amounts amounts into the desired string format. (Should they also be constants?)
For example, you might use static strings such as:
string lessThan20[ ] = " zero", "one", ..., " eighteen", "nineteen" } ; string hundred = "hundred" ; string thousand = "thousand" ;
The class should have a constructor that accepts a non-negative integer and uses it to initialize the Numbers object.
It also should have a member function print() that prints the English description of the Numbers object.
Demonstrate the class by writing a main program the asks the user to enter a number in the proper range and then prints out its English description on the console.
Submit all of your C++ code plus Printscreens (or snippets) demonstrating the following test cases: 5, 18, 295, 1019, and 9999.
Thank you and I always have a problem with this class as far as the book but have gotten that straight and I do appreciate what you do. Thank you
You guys have provided me the best Technical Writing service. And that is in such a short time. Thank you so much.
Everything was amazing. I loved it because references used Perfect. I will continue working with you. Thanks