subject

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. */
}
}


3.24 LAB: Seasons

Write a program that takes a date as input and outputs the date's season. The i

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 12:40
The most complicated four letter word
Answers: 1
question
Computers and Technology, 22.06.2019 18:00
What is the first view you place in your drawing?
Answers: 1
question
Computers and Technology, 23.06.2019 07:00
What are three software programs for mobile computing?
Answers: 1
question
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
History, 28.09.2020 16:01
question
Chemistry, 28.09.2020 16:01
question
Mathematics, 28.09.2020 16:01
question
French, 28.09.2020 16:01
question
Chemistry, 28.09.2020 16:01
Questions on the website: 13722367