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, 22.06.2019 03:20
Which of these is a benefit of social networking? oa. hiding your true identity from friendsob. avoiding talking to people in personoc. spending time with friends instead of studyingod. connecting with new people
Answers: 2
question
Computers and Technology, 22.06.2019 06:30
Exchanging which type of data uses the least bandwidth? music photographs video voice bandwidth- the amount of data that can be moved between two points in a set time period
Answers: 1
question
Computers and Technology, 22.06.2019 16:30
Corey set up his presentation for delivery to his team.the information he had to convey was critical to their job performance.he knew he would need a lot of time to explain each point
Answers: 3
question
Computers and Technology, 23.06.2019 01:20
Me with this program in c++ ! computers represent color by combining sub-colors red, green, and blue (rgb). each sub-color's value can range from 0 to 255. thus (255, 0, 0) is bright red. (130, 0, 130) is a medium purple. (0, 0, 0) is black, (255, 255, 255) is white, and (40, 40, 40) is a dark gray. (130, 50, 130) is a faded purple, due to the (50, 50, 50) gray part. (in other word, equal amounts of red, green, blue yield gray).given values for red, green, and blue, remove the gray part. ex: if the input is 130 50 130, the output is: 80 0 80. thus, find the smallest value, and then subtract it from all three values, thus removing the gray.
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, 09.03.2021 19:30
question
Mathematics, 09.03.2021 19:30
question
Mathematics, 09.03.2021 19:30
question
Advanced Placement (AP), 09.03.2021 19:30
Questions on the website: 13722363