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 19:30
When creating a presentation in libre office impress, where does the editing of slides take place? a. the slides panel b. the center panel c. the tasks panel, under the masters pages tab d. the tasks panel, under the layouts tab
Answers: 3
question
Computers and Technology, 22.06.2019 22:00
Consider the following declarations (1, 2, 3, 5, 7)class bagtype{public: void set(string, double, double, double, double); void print() const; string getstyle() const; double getprice() const; void get(double, double, double, double); bagtype(); bagtype(string, double, double, double, double); private: string style: double l; double w; double h; double price; }; a.) write the definition of the number function set so that private members are set according to the parametersb.) write the definition of the member function print that prints the values of the data membersc.) write the definition of the default constructor of the class bagtype so that the private member variables are initialized to "", 0.0, 0.0, 0.0, 0.0, respectively d.) write a c++ statement that prints the value of the object newbag.e.) write a c++ statement that declares the object tempbag of type bagtype, and initialize the member variables of tempbag to "backpack", 15, 8, 20 and 49.99, respectively
Answers: 3
question
Computers and Technology, 23.06.2019 08:30
When you interpret the behavior of others according to your experiences and understanding of the world your evaluation is
Answers: 1
question
Computers and Technology, 23.06.2019 14:30
Select the correct answer. what does it indicate when a website displays https instead of http? a. the website is secure. b. there is no secure sockets layer. c. the secure sockets layer is hidden. d. the website is not secure.
Answers: 1
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
Chemistry, 28.10.2020 05:50
question
Mathematics, 28.10.2020 05:50
question
Mathematics, 28.10.2020 05:50
question
Mathematics, 28.10.2020 05:50
Questions on the website: 13722367