Question
(I posted this same question but got an error where with the int month please check to see that the code works ) Write a
(I posted this same question but got an error where with the int month please check to see that the code works )
Write a Java program, called Seasons, which contains a static method called printSeason() which takes no input parameters and returns nothing. The printSeason() method should get the user to input a single integer value between 1 and 12 representing a month of the year and print a message saying what Season it is. (see table below for Months and Seasons). To test the printSeason() method you should call it from the main method.
Month Number Representation Season
January 1 Winter
February 2 Winter
March 3 Spring
April 4 Spring
May 5 Spring
June 6 Summer
July 7 Summer
August 8 Summer
September 9 Autumn
October 10 Autumn
November 11 Autumn
December 12 Winter
Sample Input 4
Sample Output April is in Spring
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started