Question: Write a function called convertMonthToWord. The function has an integer parameter representing the month number ( 1 - 1 2 ) . Use a switch

Write a function called convertMonthToWord. The function has an integer parameter representing the month number (1-12). Use a switch statement to test the parameter. If the number is a valid month (1-12) then print the month as a word. For example, the value 2 would print February. You can print the month in any language you like. If the value is invalid - greater than 12, less than 1- print a message that the number is invalid. Call your function from main at least 3 times with different input

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!