![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 13.10.2020 01:01 mildred3645
3.24 LAB: Seasons
Write a program that takes a date as input and outputs the date's season. The input is a string to represent the month and an int to represent the day.
Ex: If the input is:
April 11
the output is:
Spring
In addition, check if the string and int are valid (an actual month and day).
Ex: If the input is:
Blue 65
the output is:
Invalid
The dates for each season are:
Spring: March 20 - June 20
Summer: June 21 - September 21
Autumn: September 22 - December 20
Winter: December 21 - March 19
270738.1591718
import java. util. Scanner;
public class LabProgram {
public static void main(String[] args) {
Scanner scnr = new Scanner(System. in);
int inputYear;
boolean isLeapYear;
isLeapYear = false;
inputYear = scnr. nextInt();
/* Type your code here. */
}
}
![ansver](/tpl/images/cats/User.png)
Answers: 2
Another question on Computers and Technology
![question](/tpl/images/cats/informatica.png)
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 18:00
What is the first view you place in your drawing?
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 07:00
What are three software programs for mobile computing?
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 24.06.2019 00:00
Which tool could be used to display only rows containing presidents who served two terms
Answers: 3
You know the right answer?
3.24 LAB: Seasons
Write a program that takes a date as input and outputs the date's season. The inp...
Questions
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 28.09.2020 16:01
![question](/tpl/images/cats/istoriya.png)
History, 28.09.2020 16:01
![question](/tpl/images/cats/himiya.png)
Chemistry, 28.09.2020 16:01
![question](/tpl/images/cats/istoriya.png)
![question](/tpl/images/cats/en.png)
English, 28.09.2020 16:01
![question](/tpl/images/cats/mat.png)
Mathematics, 28.09.2020 16:01
![question](/tpl/images/cats/health.png)
![question](/tpl/images/cats/istoriya.png)
History, 28.09.2020 16:01
![question](/tpl/images/cats/en.png)
English, 28.09.2020 16:01
![question](/tpl/images/cats/mat.png)
Mathematics, 28.09.2020 16:01
![question](/tpl/images/cats/himiya.png)
Chemistry, 28.09.2020 16:01
![question](/tpl/images/cats/mat.png)
Mathematics, 28.09.2020 16:01
![question](/tpl/images/cats/mat.png)
Mathematics, 28.09.2020 16:01
![question](/tpl/images/cats/fr.png)
French, 28.09.2020 16:01
![question](/tpl/images/cats/himiya.png)
Chemistry, 28.09.2020 16:01
![question](/tpl/images/cats/mat.png)
Mathematics, 28.09.2020 16:01
![question](/tpl/images/cats/himiya.png)
Chemistry, 28.09.2020 16:01
![question](/tpl/images/cats/en.png)
English, 28.09.2020 16:01