Question: Write a program that determines the month of the year based on the value of a variable called month. The variable will be a

Write a program that determines the month of the year based on the value of a variable called month. The variable will be a number from 1 to 12 ( 1 is January, 2 is February, etc.). Use a print statement to write the month to the screen. Important, you will need to declare the variable month and assign it a value in order to test your code. However, do not submit your code to be graded with the variable declaration and assignment. The auto-grader will declare the variable for you and give it a value. Click on the Try it button to test your code. TRY IT If your code is not working, try to execute your code line by line with the Code Visualizer. Code Visualizer Your program should handle a variable mooth that has a number value between 1 and 12. Print the month of the year based on this number (1 is January, etc) Remember, do not declare the variable month in your code when you submit it. The auto-grader will declare the variable for you.
Step by Step Solution
3.42 Rating (158 Votes )
There are 3 Steps involved in it
The image you provided contains an exercise related to programming where the task is to determine th... View full answer
Get step-by-step solutions from verified subject matter experts
