Write a program that takes a date as input and outputs the date's season in the northern hemisphere. The input is a string to represent the month and an int to represent the day. Ex: If the input is:...


Write a program that takes a date as input and outputs the date's season in the northern hemisphere. The<br>input is a string to represent the month and an int to represent the day.<br>Ex: If the input is:<br>April 11<br>the output is:<br>Spring<br>In addition, check if the string and int are valid (an actual month and day).<br>Ex: If the input is:<br>Blue 65<br>the output is:<br>Invalid<br>The dates for each season in the northern hemisphere are:<br>Spring: March 20 - June 20<br>Summer: June 21 - September 21<br>Autumn: September 22 - December 20<br>Winter: December 21 - March 19<br>365076.2342078.qx3zqy7<br>LAB<br>19.23.1: LAB: Seasons<br>0/ 10<br>АCTIVITY<br>LabProgram.java<br>1 import java.util.Scanner;<br>2<br>3 public class LabProgram {<br>public static void main(String [] args) {<br>Scanner scnr = new Scanner(System. in);<br>String inputMonth;<br>int inputDay;<br>4<br>8<br>/* Туре уor code here. */<br>}<br>9.<br>10<br>11 }<br>12<br>

Extracted text: Write a program that takes a date as input and outputs the date's season in the northern hemisphere. 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 in the northern hemisphere are: Spring: March 20 - June 20 Summer: June 21 - September 21 Autumn: September 22 - December 20 Winter: December 21 - March 19 365076.2342078.qx3zqy7 LAB 19.23.1: LAB: Seasons 0/ 10 АCTIVITY LabProgram.java 1 import java.util.Scanner; 2 3 public class LabProgram { public static void main(String [] args) { Scanner scnr = new Scanner(System. in); String inputMonth; int inputDay; 4 8 /* Туре уor code here. */ } 9. 10 11 } 12

Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here