Brief Description
1. In this assignment , you are to write a program that prints out the elements of an array of numbers and finds the aveages of those numbers. The array has as its element type int, and a size of 150.

Design
Your program must include these functions:
[CODE]
1. void intitalize (int [], int); which intializes the arrays elements to a random integer between 1 and 100.

2. void print (int [], int); which prints out all of the array elements with 10 per line, anda spacing between the elements of 7.
3. void print (int[], int); which prtins out all of the array elements with 10 per line, and a spacing between the elements of 7.

This is what i have so far. Any help appreciated. The program is supposed to run in batch mode. I also have to to run the program using random numbers. He asked us to use rand and srand.


[CODE]
#include<iomanip>
#include<iostream>
#include<stdlib.h>
#include<time.h>

using namespace std;

void initialize(int a[], int);

float average(int a[], int);

void print(int a[], int);

main()
{

cout.setf(ios::fixed,ios::floatfield);
cout.setf(ios::showpoint);

const int size=150;
int a[size];


intialize(a,size)
average(a[]);



return 0;
}



void intialize(int a[], int);
{
int size=150;
for(int i=0; i<size; i++)
{
(rand()%size)+1;
}

}


float average(int a[], int);
{
int size=150;
int total =0;
for(int i=0; i<size; i++)
{
total += a[i];
return float(total)/float(size);
}
}


void print(int a[], int);
{
int size = 150;
for(int i=0; i<size; i++)

}