Write a program that allows the user to enter a number that


Write a program that allows the user to enter a number that represent the month of a year (1 to 12) and uses a switch construct to convert the month number to its corresponding number of days, where January is considered the 1st month of a year and December is considered 12th month of a year. Print out the resulting days of that particular month. If user inputs the number "2", it should ask back to the user the year and you should calculate if the user input year is leap year or not and print the days of the month of February accordingly. Mat lab

Request for Solution File

Ask an Expert for Answer!!
Mechanical Engineering: Write a program that allows the user to enter a number that
Reference No:- TGS0963595

Expected delivery within 24 Hours