CSCI 151 Fall 2014 Lab 11 Assignment

In USA, each state has different rules for license plates. In this program we will assume that all cars in NJ have 6 digit number license plates, all cars in NY have 7 digit number license plates , and all cars in RI have 4 or 5 digit number license plates. Your program will read a number of cars in the parking lot, license plate for each car, and finds the number of cars from each of the 3 states listed above (NJ, NY, RI).

Write the following functions:

Pay attention: your input for license plate number could be ANY POSITIVE INTEGER. 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.