Question: Write a program that uses a random number generator to generate a two digit positive integer and allows the user to perfom one or more

 Write a program that uses a random number generator to generate

Write a program that uses a random number generator to generate a two digit positive integer and allows the user to perfom one or more of the following operations: 1. Double the number 2. Reverse the digits of the number 3. Raise the number to the power of3 4. Sum the digits of the number 5. If the number is a two digit number, then raise the first digit to the power of the second digit 6. If the number is a three digit number and the last digit is lees tha or equal to 4, then raise the firet two digits to the power of the last digit. Each successive operation should be performed on the numer generated by the last operation. Your program should not contain any global variables and each of the these operations must be implement by a separate function. Your program should be meu driven

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!