SUNIL GUTTA

SUNIL GUTTA

  • NA
  • 1k
  • 394k

generate a random number based on lower and upper range inpu

Oct 13 2013 6:04 AM

Hi


Write a console program that will work in MS VIsual C# 2010 that will generate a random number based on lower and upper range inputs.

  1. Create a console program where you will implement variables that are needed for this program and will implement the code within Main and any static methods that are called.

  2. The program will take inputs for a range of integer numbers, a low end of the range and a high end of the range. These two integer numbers will be used to generate a random number that will be displayed.

  3. The program will consist of Main and three void methods.

  4. The first method will request the low number for the range and the high number in the range. It will then pass the two range numbers to a second method.

  5. The second method will take the two numbers passed to it and will generate a random number within the range. It will then pass the two range numbers and the random number to the third method.

  6. The third method will take the three numbers passed to it and display then to the console in the format indicated in the sample output below.

  7. Main will only have one line of code which will call the first method.

  8. The first method will call the second method and the second method will call the third.

You should format your output to look something like the following:

Enter the low integer range number: 1
Enter the high integer range number: 1000
random number from range 1 and 1000 is 710
Press any key to continue . . .

Ty 
Possible help me up ty

Answers (4)