With the aid of c++, write a program which utilizes a random number generator to bring out(generate) a 2 digits +(positive) integer and permits the user to do 1 or more of the operations listed below.Find i.Considering the number is a 2 digits number let the exponent of the 1st digit be that of the 2nd digit ii.Considering the number is a 3 digits number with its last digit <=4 and the exponent of the 1st 2 digits being that of the last digit N.b The 'number' word used above represents the randomly generated 2 digits +(positive) integer. a.In case the random number generated is less than 10,add ten to the number. b.Check if the number is a prime after each operation
With the aid of c++, write a program which utilizes a random number generator to bring out(generate) a 2 digits +(positive) integer and permits the user to do 1 or more of the operations listed below.Find
i.Considering the number is a 2 digits number let the exponent of the 1st digit be that of the 2nd digit
ii.Considering the number is a 3 digits number with its last digit <=4 and the exponent of the 1st 2 digits being that of the last digit
N.b The 'number' word used above represents the randomly generated 2 digits +(positive) integer.
a.In case the random number generated is less than 10,add ten to the number.
b.Check if the number is a prime after each operation
c.The code shouldn't be made up of global variables and also each of these operations should be implemented by a separate function
d.Code should be menu driven and each successive operation must be performed on the number generated by the last operation.
e.There should be a creation of an enumeration type called selection which consists of values which tallies(corresponds) each of the menu items.
f.Make a comparison of the enum values with the input keyed in(entered) by the user to aid find which operation to call.
g.Operations from i-ii should be implemented as void functions.
h.Utilize the reserved keyword (typedef) to create an alias for the int datatype which functions as the declarer of the random 2 digits integer variable.
![](/static/compass_v2/shared-icons/check-mark.png)
Step by step
Solved in 2 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)