A random number generator question.

Write a program that uses a random number generator to generate a two digit positive integer and allows the user to perform one or more of the following operations:

a. Double the number.

b. Reverse the digits of the number.

c. Raise the number to the power of 2, 3, or 4.

d. Sum the digits of the number.

e. If the number is a two digit number, then raise the first digit to the power of the second digit.
f. If the number is a three digit number and the last digit is less than or equal to 4, then raise the first two digits to the power of the last digit.

I don't know how to do this....
Start at the beginning.

Can you make an empty program that does nothing?

I really hope so.

Then, can you generate a two digit positive integer, randomly? If not, you have a useful, focused question to ask, rather than just hoping someone does your homework for you.
Topic archived. No new replies allowed.