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. */
}
}
Answers: 2
Computers and Technology, 23.06.2019 13:30, valeriegarcia12
Select the correct answer from each drop-down menu. which types of computer networks are bigger as well as smaller than a man? a man is a network of computers that covers an area bigger than a , but smaller than a .
Answers: 1
Computers and Technology, 23.06.2019 18:50, annieleblanc2004
Ais a picture icon that is a direct link to a file or folder
Answers: 1
3.24 LAB: Seasons
Write a program that takes a date as input and outputs the date's season. The inp...
Biology, 06.10.2019 04:01
Mathematics, 06.10.2019 04:01
English, 06.10.2019 04:01
History, 06.10.2019 04:01