Program 2 Write a program prompting the user to enter the month name of any month of the year . Use a switch to report the number of days in the…