Question: Declare an array of size 10 and initialize it with random integers in the range [ 1, 100]. You are then asked to put the
Declare an array of size 10 and initialize it with random integers in the range [ 1, 100]. You are then asked to put the maximum value to the most right (without changing the order of other elements, see the example below). To show the correctness of your program, you have to write the initial array as well as the one after exchange into a file called "random.txt".
Example Output in random.txt
Initial Array:
8 50 74 59 31 73 45 79 24 10
After the exchange, the Array is :
8 50 59 31 73 45 74 24 10 79
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
