Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I need help with the following problem: Write a program that determines which of

ID: 3614315 • Letter: I

Question

I need help with the following problem:
Write a program that determines which of five geopraphicregions within a major city (north, south, east, west, and central)had the fewest reported automobile accidents last year. It shouldhave the following two functions, which are called by main.
- int getNumAccidents() is passed the name of a region. Itasks the user for the number of automobile accidents reported inthat region during the last year, validates the input, then returnsit. It should be called once for each city region. - void findLowest() is passed the five accidents totals. Itdetermines which is the smallest and prints the name of the region,along with its accidents figure. Input validation: Do not accept an accident number that isless than 0.
Also:
- Three functions should be used for this program: main, getNumAccidents, and findLowest
- A modular approach should be used with the functions;parameters and return values (not global variables) should be used totransfer data between modules
- Declare a 5 element array of type integer in main to holdthe number of reported accidents for each geographic region in amajor city (north, south, east, west, and central)
- The return values from getNumAccidents will be stored inthe previously declared array elements (i.e. getNumAccidents willbe called 5 times for each of the geographic regions)
- The findLowest function will be passed the previouslydeclared (and populated)
Lifesaver rating for anyone that helps..

Write a program that determines which of five geopraphicregions within a major city (north, south, east, west, and central)had the fewest reported automobile accidents last year. It shouldhave the following two functions, which are called by main.
- int getNumAccidents() is passed the name of a region. Itasks the user for the number of automobile accidents reported inthat region during the last year, validates the input, then returnsit. It should be called once for each city region. - void findLowest() is passed the five accidents totals. Itdetermines which is the smallest and prints the name of the region,along with its accidents figure. Input validation: Do not accept an accident number that isless than 0.
Also:
- Three functions should be used for this program: main, getNumAccidents, and findLowest
- A modular approach should be used with the functions;parameters and return values (not global variables) should be used totransfer data between modules
- Declare a 5 element array of type integer in main to holdthe number of reported accidents for each geographic region in amajor city (north, south, east, west, and central)
- The return values from getNumAccidents will be stored inthe previously declared array elements (i.e. getNumAccidents willbe called 5 times for each of the geographic regions)
- The findLowest function will be passed the previouslydeclared (and populated)
Lifesaver rating for anyone that helps.. - Three functions should be used for this program: main, getNumAccidents, and findLowest
- A modular approach should be used with the functions;parameters and return values (not global variables) should be used totransfer data between modules
- Declare a 5 element array of type integer in main to holdthe number of reported accidents for each geographic region in amajor city (north, south, east, west, and central)
- The return values from getNumAccidents will be stored inthe previously declared array elements (i.e. getNumAccidents willbe called 5 times for each of the geographic regions)
- The findLowest function will be passed the previouslydeclared (and populated)
Lifesaver rating for anyone that helps..

Explanation / Answer

please rate - thanks #include using namespace std; int getNumAccidents(string); void findLowest(int[]); int main() {string region[]={"north","south","east","west","central"}; int i,accident[5]; for(i=0;i