I have to create a program that asks a person to enter a 2 digit number (10-99) and convert it into words. I've been working on this for days and I still don't see what I'm doing wrong! PLEASE HELP ME!!! EXAMPLE: 27 twenty-seven [CODE]#include using namespace std; int main() { int num; int ones_digit = num%10; int tens_digit = num/10; cout << "Enter a two-digit number:\n"; cin >> num; if (num>=20) && (num<100) { switch (tens_digit) { case 2: cout << " twenty- "; break; case 3: cout << " thirty- "; break; case 4: cout << " … +0 [CODE]if(num/100>=1) { x=num/100; switch(x) { case 1: cout<<"one hundred "; break; case 2: cout<<"two hundred "; break; case 3: cout<<"three hundred "; break; case 4: cout<<"four hundred "; break; case 5: cout<<"five hundred "; break; case 6: cout<<"six hundred "; break; case 7: cout<<"seven hundred "; break; case 8: cout<<"eight hundred "; break; case 9: cout<<"nine hundred "; break; } num=num%100; } if(num/10>=1) { x=num/10; switch(x) { case 2: cout<<"twenty "; break; case 3: cout<<"thirty "; break; case 4: cout<<"fourty "; break; case 5: cout<<"fifty "; break; case 6: cout<<"sixty "; break; case 7: cout<<"seventy "; break; case 8: cout<<"eighty … +0 I need help with writing a program for converting int numbers to words. For example, the number 713 would be translated into the string "seven hundred thirteen", and 8203 would be translated into "eight thousand two hundred three". The class should have a single integer member variable: - int number; - and static array of strings that specify how to translate into the desired format. so far i have these arrays set up... not much code but I hope i´m off to a good start. I´m asking for maybe a an example code to help me get started. If possible … -1 Hi you guys, just want how do you convert a number to word in c++ if it is in the thousands?:?: +0

The End.