0

hey!

so i have to write a code that generates a number from 25-100 (x) and this will be the index of my array. i then need to x numbers from 1-1000 and store them as the element of my array. that is the first function. in the second function i need to write a code that returns the location of the smallest element, in the third function i need to write a code that returns the location of the largest element and in the last function i need to print the largest and smallest number. this is what i have right now..and am stuck. Someone plss help me!!

```
#include <iostream>
#include <ctime>
#include <cstdlib>
using namespace std;
int num2;
int loadArray (int);
int smallestLocation (int);
int largestLocation (int);
void printSmallestLargest (int);
int main ()
{
int max = 0;
int number = 0;
loadArray(max);
return 0;
}
int loadArray (int maximumNumber[])
{
srand(time(0));
int maxNumber;
maxNumber = rand()%76 + 25 ;
maximumNumber[maxNumber];
for(int i = 0; i<=maxNumber; i++)
{
int values = rand()%1000 + 1 ;
for(int j = 0; j<=maxNumber; j++)
{
maximumNumber = j;
return maxNumber;
}
}
}
int smallestLocation (int small[])
{
```

*Edited 3 Years Ago by Nick Evan*: Fixed formatting