Question: Make a vector holding the ten string values zero, one, . . . nine. Use that in a program that converts a digit to its
Make a vector holding the ten string values "zero", "one", . . . "nine". Use that in a program that converts a digit to its corresponding spelled-out value; e.g., the input 7 gives the output seven. Have the same program, using the same input loop, convert spelled-out numbers into their digit form; e.g., the input seven gives the output 7.
Step by Step Solution
3.52 Rating (172 Votes )
There are 3 Steps involved in it
libraries using namespace std int main vector values... View full answer
Get step-by-step solutions from verified subject matter experts
