Question: In C + + , we can use rand ( ) function ( More details ) to generate random numbers. In the question, we will
In C we can use rand function More details to generate random numbers. In the
question, we will generate a digit random number between and complete
number calculation following the requirements:
Display a welcome message.
Display the randomly generated evenodd number.
Reverse the number.
For example, if the number is change it to
Check if the number is a palindrome.
For example, is a palindrome as it is the same if reversed.
Find the smallest and largest digit in the number
For example, the largest digit is and smallest is in
Use at least one constant variable to store value in the program.
Following are sample screen shots to illustrate the expected behavior of your
program.
Note:Your program must display the same information and formatted the same.
Welcome to Number Generator Program
Now generating a digit random number...
The random number is :
Reverse of the number is:
The largest digit of the number is:
The smallest digit of the number is:
The number is not a Palindrome
Thank you for using Number Generator Program!
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
