Write a program that uses a random number generator

Assignment Help Programming Languages
Reference no: EM13763024

Write a program that uses a random number generator to generate a two digit positive integer and allows user to perform one or more of the following operations-

a. double the number

b. reverse the digit of the number

c. raise the number to the power of 2,3, or 4

d. sum thee 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 powerof the last digit.

After performing an operation if the number is less than 10, add 10 to the number. Also, after each operation determine if the number is prime.

Reference no: EM13763024

Questions Cloud

Eassy on imaginary peripheral device : Come up with an imaginary peripheral device which you think would be useful in personal or business use. Describe what this device would do.
The county medical society answering service : Grace Reed had been working at the County Medical Society Answering Service for 18 months when she received a promotion to shift supervisor. Grace was quite excited. She had worked very hard to develop the technical skills for answering calls and the..
Summarize the relationship between classes and unions : Write a paper in which you summarize the relationship between structures, classes, and unions in object-oriented programming.
What are strategies for reducing behavior problems in class : What are three strategies for reducing and preventing behavior problems in the preschool classroom?
Write a program that uses a random number generator : Write a program that uses a random number generator to generate a two digit positive integer
Significant event relate to the changes on health care : Do you personally agree with the event's significance, based on your beliefs and values?
Improve model by eliminating certain independent variables : Examine the operating earnings regression model output obtained from the 60 stores, as shown in Table 6.27. Try to improve the model by eliminating certain independent variables or by making any other changes that you think make good sense
Compute volcans market value of equity : Compute Volcans's market value of equity before it announces the purchase. Suppose Volcan decides to its internally generated funds to finance the purchase.
Write a program that will calculate number of square feet : write a program that will calculate the number of square feet (living space) in a 4-room house. Your analysis should be clearly written and demonstrate your thought process and steps used to analyze the problem.

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd