Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

JAVA ASAP...... Program Description Every year you pull out your fake Christmas tree and decorate it in December. Then January rolls around with the start

JAVA ASAP......image text in transcribedProgram Description

Every year you pull out your fake Christmas tree and decorate it in December. Then January rolls around with the start of the spring semester and you have trouble nding time to take it down. What if you turned it into an Eternal Tree or one that stays up year round and you just change the decorations on it. Your task for this program is, given a month and day by the user, tell them what type of tree should be displayed or if they should be setting up for a new one. Here are the general rules to be followed:

image text in transcribed

The next set of decorations need to go up within 3 days of the last holiday ending (if its in the middle of the month) or within 3 days of the start of the month. Otherwise, you should see the current tree decorations. So if the user enters January 10 the program should tell the user they should be looking at a Winter Tree. If the user enters February 1 the program should tell the user they should be setting up a Valentines Day Tree. By the time they get to February 4th, they should be looking at a Valentine's Day Tree. See later in the assignment for more test cases. Exceptions: Note that for the Easter, Summer, and Christmas trees, you should "see" those for the entire months. The trees were already "set up" in the previous month.

image text in transcribed

image text in transcribedGrading Notes You must have a completed Collaboration document on le in order for the program to be graded. Your program should include basic "header" documentation in your code that identies your name, class section, program #, due date and brief description of the program. You should only need material covered through lecture 5 of the course for this assignment. Your program must input the date as two separate integer values, with the month entered rst and the day entered second.image text in transcribedExceptions: Note that for the Easter, Summer, and Christmas trees, you should "see" those for the entire months. The trees were already "set up" in the previous month.

image text in transcribed

Grading Rubric NOTE: If your submitted assignment does not compile, you will receive 0 points. We are unable to test code that does not compile. Insuring that your code compiles is critical when developing programs. We would rather grade an incomplete yet operational program than a program that we can't test.

image text in transcribed

Required Output Format . You should set up your WHICH Tree . You should see your WHICH Tree invalid value: MONTH x IS BAD DAY x IS BAD Class and File Naming Name your class Tree and source file Tree.java. Points to Think About

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases Illuminated

Authors: Catherine M Ricardo, Susan D Urban

3rd Edition

1284056945, 9781284056945

More Books

Students also viewed these Databases questions