Description
In this program, you will store a calendar month of dates (numbers starTng at 1) in a two-dimensional array. Some months have 31 days, others 30, and February has 28 (29 if it’s a leap year, which is a year divisible by 4). Here is a list of Months, the number of Days in each month, and the Day on which each Month Starts, in 2016, 2017, 2018, and 2019: Day on which Month StartsMonthsDays2016201720182019January31FridaySundayMonday±uesdayFebruary28*MondayWednesday±hursdayFridayMarch31±uesdayWednesday±hursdayFridayApril30FridaySaturdaySundayMondayMay31SundayMonday±uesdayWednesdayJune30Wednesday±hursdayFridaySaturdayJuly31FridaySaturdaySundayMondayAugust31Monday±uesdayWednesday±hursdaySeptember30±hursdayFridaySaturdaySundayOctober31SaturdaySundayMonday±uesdayNovember30±uesdayWednesday±hursdayFridayDecember31±hursdayFridaySaturdaySunday*except leap year Given a month name, the name of the starTng day of the week, and the year, write a program to store the date (number) of each day in the corresponding array locaTon. Use a two-dimensional array called month of type int to store the generated month dates.1.Declare month to be an array of type int of the proper size and dimensions (weeks and days), and iniTalize all elements to 0.2.Handle user input as follows:a.Ask the user for the month name, and match it to the appropriate number of days (hint: use parallel arrays)b.If the month is February, you need to know the year, and test if it is a leap year to adjust February’s number of days, if needed.c.Ask the user which day of the week the month starts on, and match it to the proper day number (Sunday being day 1), to determine which posiTon in the two-dimensional array to start storing dates (hint: use parallel arrays)3.Use forma²ed output to display the month le³-aligned, omi´ng “0” dates (see the output example below)4.Use funcTons if desired. Allow your main program to loop, allowing the user to ask for an unlimited number of months.