Lab Assignment April 28

In USA, each state has different rules for license plates. In this program we will assume that NJ and NC has 6 digit numbers, with the following conditions, NJ starts with 1-5 and NC starts with 6-9, NY and MA has 7 digit number, with the following conditions NY ends with 1-5 and MA ends with 6-9, RI and DE has 4 or 5 digit number, with the following condition RI starts with even number and DE starts with odd number. Your program will read a number of cars in the parking lot, store license plates in the array, and finds the number of cars from each of the 6 states listed above (NJ, NC, NY, MA, RI, DE).

Write the following functions:

Pay attention: your input for license plate number could be ANY POSITIVE INTEGER up to 2147483647. And your program will ignore any numbers that are shorter than 4 digits and longer than 7 digits since they don't belong to any state

Example: