Question: C + + :Write a program that performs the following steps. Create a one - dimensional array of type integer and size 5 0 .
C
:Write a program that performs the following steps.
Create a onedimensional array of type integer and size
Populate the array with randomly generated numbers between and inclusive.
Display the array contents in groups of numbers per line, as shown in the example.
Search the array to find the highest and lowest numbers and their location in the array.
Display the highest and lowest numbers and their position in the array array index
Notes:
Because the program uses randomly generated numbers, they must be different every time the program runs.
Please use random device irnstead of rand
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
