//Programmer: Bo Bayles  Date: 26 October 2004
//File: plot.h            Class: CS54 C
//Purpose: This is the header file that defines the functions
//  used to generate random numbers and then plot them.

#ifndef PLOT_H
#define PLOT_H

#include <cstdlib>
#include <iomanip>
#include <iostream>
using namespace std;
//Include what's needed for the functions declared here.

void fillArray(int NumArray[], const int iNumPlot, const int iMin,
               const int iMax);
//fillArray takes an array of integers between 1 and 65, an integer
//  between 1 and 20, and two constant integers. It fills the array
//  from position 0 to the position indicated by iNumPlot by calling
//  the getRand function. It returns nothing.

int getRand(const int iMin, const int iMax);
//getRand accepts two constant integers and uses the rand function
//  to generate a pseudo-random integer. It returns the generated integer.

void plotArray (const int iNumArray[], const int iNumPlot);
//plotArray accepts a constant array of integers, and an integer between 0
//  and 20 indicating how many elements in the array it should work with.
//  It outputs a line of width indicated by the value of each element of the
//  array, and outputs a graph. It returns nothing.

#endif


