In this program you will read number of students in the class, and number of classes each student is taking in specific semester. This information will be stored in array of integers. The user will enter grade for each course for each student and average grade per student will be found. This information will be stored in the array of doubles.
See more details below:
Write the following functions:
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: