[solved]-Write Program C 1 Initializes Array 5 Elements Random Values 1 50 User Input 2 Shuffles Ar Q39086424
Write a program in C# that:
1) initializes and array of 5 elements with random valuesbetween 1-50 (no user input), 2) shuffles the array, 3) prints thearray, 4) determines if the elements are in ascending (ornon-decreasing) order and 5) repeats steps 2-4 until step 4 istrue.
Hint: stay sane and use functions. Also, since you need to beable to visualize what’s going on, we’d recommend starting withprinting the array to the screen.
Yes, I know this is really a ridiculous and insufficient way ofsorting, but it needs to be done, so please no other way ofsorting.
Expert Answer
Answer to Write a program in C# that: 1) initializes and array of 5 elements with random values between 1-50 (no user input), 2) s… . . .
OR

