Write a modular program that determines which of five geographic regions within a major city (north, south, east, west, and central) had the fewest reported automobile accidents last year. Prompt the user for the number of accidents for each region and store the data in an array which should be passed to one of your functions. Your program should determine which of the regions has the fewest number of accidents and display the name of the region along with the number of accidents. Your program should continue to prompt for input and display results until the user signals they wish to stop.
THIS IS WHAT I HAVE SO FAR
// How can get my loop it increment through North, South, East , West ect ??
#include <iostream>
#include <iomanip>
using namespace std;
int main ()
{
const int SIZE = 5;
string names[SIZE] = {"North", "South " , "East" , "West", "Central" };
int numOf_autoAcc[4];
for (int index = 0; index < SIZE; index++)
{
cout << " Please enter the number of accidents in " << names[0] << endl;
cin >> numOf_autoAcc[index];
}
Okay thank you. You have any idea on how I should go about accessing this array and finding the maximum number. I will say I am not too fond of function calls and passing values.