Graded Lab Practice Nov 13

In this program you will check the expiration year of the prodcuts. Write a function is_good that has two parameters: current year, and expiration year. The function returns 1, if the item is still good, 0 if the item is about to expire (same current year and expiration year) and -1 if the item is expired. Write main that first reads the number of items in the store and the current year. Then the program reads a sequence of integers, each integer represents the expiration year. The program then will check expiration date for each item using function is_good and print the appropriate message. In addition, the program prints the number of items in each category. of each category and the values in each category.