Computers and Technology

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.

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 19:00, Albertrami9019
Jill wants to become a network professional. which certification would be useful for her? a. mcse b. pmp c. comptia a+ d. ccie
Answers: 2
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 21:00, jennifer7037
Ulia is planning to attend the same private four-year college her parents attended. she wants to save at least $18,000 in four years to contribute to her college education. which monthly deposit amounts can julia use to achieve her goal? check all that apply.
Answers: 2
image
Computers and Technology, 23.06.2019 08:00, Buddy01
Match the items with their respective descriptions.
Answers: 1
Do you know the correct 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.05.2021 03:00
Konu
Mathematics, 28.05.2021 03:00
Konu
Mathematics, 28.05.2021 03:00