The assignment calls for me to find the area with the fewest accidents (north, south, east, west, central) in a city. I am to write two functions:
-getNumAccidents() is passed the name of the region. It asks user for the number of auto accidents in the region, validates info, and returns it. It should be called once for each region.
-void findLowest() is passed the five accident total. It determines which is the smallest and prints the name of the region, along with accident figure.
I wrote first function in a cout/ cin line asking for user input of the region, as well as the accident total from that region. I am unsure as to what would be the easiest way to find the lowest amount. I do not want to use an array in this program, because we have not gone over them in C++, only java...