Question: C++ question Question: Write a menu-driven program that prompts the user to enter an integer between 10 and 999 and allows the user to perform
C++ question
Question: Write a menu-driven program that prompts the user to enter an integer between 10 and 999 and allows the user to perform one or more of the following operations:
Display the digits that compose the number (e.g., if the user enters 215 then the program displays 2 1 5)
Reverse the digits of the number (e.g., 215 becomes 512)
Sum the digits of the number (e.g., for 215, the result is 8 = 2+1+5
Returns true if at least one of the digits is a prime number
Your program should implement each of these operations in a separate function. Use the appropriate parameters to pass information in and out of a function
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
