subject

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.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 10:00
Hey i just logged on and one of the moderators deleted a bunch of my answers to questions, even though the answers were right and the people it doesn't make sense but if anyone wants to talk about anything just message me lol (this is super random lol)
Answers: 1
question
Computers and Technology, 23.06.2019 17:20
What is the best assassins creed game?
Answers: 2
question
Computers and Technology, 24.06.2019 05:00
Who is most likely be your target audience if you create a slide presentation that had yellow background and purple text
Answers: 2
question
Computers and Technology, 24.06.2019 07:00
Why would a business likely use a java applet - to back up their data files for the business - to create a program that a customer can launch in their web browser - to create music on a powerpoint presentation - to organize files on their company directory
Answers: 3
You know the right answer?
Write a program that uses a random number generator to generate a two digit positive integer and all...
Questions
question
Mathematics, 27.10.2019 17:43
Questions on the website: 13722360