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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 08:10, Bearboy5957
Ihave a music player on my phone. i can buy songs, add them to playlists and play them. obviously it would be redundant to store each song in each playlist; each playlist is just a list of pointers to the songs. for this lab you will simulate this behavior. your program will need to have options to: add songs to the system library (you will store the text of the first line of the song, rather than the audio) add playlists add songs to a playlist list playlists play a playlist list all of the songs in the library with a count of how many times each song has been played remove a song from a playlist remove a playlist remove a song from the library (and thus from all playlists that contain it) note that we will not be checking many error cases. in real programming this would be bad, you should usually try to recognize and respond to as many types of errors as you can. in the context of class we are trying to acquaint you with as many concepts as possible, so for the sake of educational efficiency we will not be checking most errors in this lab, you may assume that your user provides correct input. you may add all appropriate error testing if you wish, but we will not be testing for it.
Answers: 2
image
Computers and Technology, 22.06.2019 17:30, cesargarcia17671
Type the correct answer in the box. spell all words correctly. under which key category do the page up and page down keys fall? page up and page down keys fall under the keys category.
Answers: 3
image
Computers and Technology, 23.06.2019 14:30, HarryPotter10
Open this link after reading about ana's situation. complete each sentence using the drop-downs. ana would need a minimum of ato work as a translator. according to job outlook information, the number of jobs for translators willin the future.
Answers: 3
image
Computers and Technology, 23.06.2019 21:00, tiffg2588
Will this setup result in what kathy wants to print?
Answers: 2
You know the right answer?
Write a program that uses a random number generator to generate a two digit positive integer and all...

Questions in other subjects:

Konu
Mathematics, 28.03.2021 02:20
Konu
Mathematics, 28.03.2021 02:20
Konu
English, 28.03.2021 02:20
Konu
Mathematics, 28.03.2021 02:20