Question: Q5. Design an algorithm and write its C++ code based on Switch-Case statements. It takes an integer argument in the range from 1 to 9,
Q5. Design an algorithm and write its C++ code based on Switch-Case statements. It takes an integer argument in the range from 1 to 9, inclusive, and prints the English name for that integer on the computer screen. If the argument is not in the required range, then the function should print "Out of Range Digit" without the quotation. Thus, for example:
The '7' should be printed as 'seven' on the screen;
Keep your code commented and indented for ease of reading. Paste your commented codes in the solution and also add a clear screenshot of the outcome in your solution:
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
