Question: Return Within 30 Days for a Full Refund Your final solution will have 3 files (there are 3 classes) so you will need to bundle

 "Return Within 30 Days for a Full Refund" Your final solutionwill have 3 files (there are 3 classes) so you will needto bundle them together into 1 compressed file. Please submit either a.zip file or a .jar file. Most return policies give a window

"Return Within 30 Days for a Full Refund" Your final solution will have 3 files (there are 3 classes) so you will need to bundle them together into 1 compressed file. Please submit either a .zip file or a .jar file. Most return policies give a window of time from the date of purchase, for example 30 days. But how do you find a future date from a given date? Let's write a tool to figure this out. Objectives Defining your own object to a specification Write both supplier and client code Working with multiple classes and starter code Specification This assignment has 2 parts. In part 1, you'll implement a class to a given specification. In part 2, you'll modify starter code to complete a stand-alone program using the class you wrote in part 1. In both classes, you are limited to the topics covered so far this quarter: chapters 1 - 5, & chapter 8. Part 1 You are going to write a class named Date to the following specification: class Date day month year /* Class invariants: The year must be 1600 or later The day must legal the month The day and month must be legal for the year For example, if the month is June, the day should never be 31. If the month is February, the day can only be 29 if it is a leap year. All methods that affect the state of a Date object must ensure this. */ day month year /* Class invariants: The year must be 1600 or later The day must legal the month The day and month must be legal for the year For example, if the month is June, the day should never be 31. If the month is February, the day can only be 29 if it is a leap year. All methods that affect the state of a Date object must ensure this. */

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!