lab3-2.pdf

Table _________ Names: ____________________________

____________________________

____________________________

Lab #3-2 (Take Home) The Seasons

Create a program that displays the season (Winter, Spring, Summer, Fall) based on the month (and day if needed). The user will supply the month as a number (January=1, February=2, etc.) and the day of the month as a number. Below are the dates of each season. You team for this take home lab may consist of 1-3 students from your table. (You may work alone on this lab only.) You may not work with students from another table or from another class.

Things to Do: • Make sure your program is as efficient as possible. • Ignore the year and leap years. • Determine which values should be variables and which should be constants. • Validate Input. Use tempAlternatives.zip located in PILOT>Content>Module 3>Examples as a guide for

validating input. (For example, 6/31 is an invalid date.) • Create and type a test plan table testing inputs for boundaries and near boundaries, along with at least 3

invalid input combinations. Include negative numbers for testing as well. Note: you may not need to use all lines in the table or you may need more.

• Create a Netbeans project called “seasons”. In the comments, include the description and all your team members. You will export the Netbeans project as seasons.zip and upload to PILOT.

• Create a Microsoft Word document called seasons_output.doc. Include all team members name and the lab #. You will display the output and snapshots for the following (month, day) combos: (-1, -1), (6, 31), (1, 31), (9, 22), (9, 23)

• Copy program to a Microsoft Word document called seasons_source.doc and upload to PILOT.

Season Dates

Winter December 21 – March 19

Spring March 20 – June 20

Summer June 21 – September 21

Fall September 22 – December 20

Month Number of Days

January 31

February 28

March 31

April 30

May 31

June 30

July 31

August 31

September 30

October 31

November 30

December 31

SeasonsTest Plan User Input - Month User Input - Day Display