No late assignment is accepted. 2. You must submit the source code .java with detailed comments (at least 3:1 ratio, 3 c
Posted: Sun Jul 03, 2022 9:57 am
No late assignment is accepted.2. You must submit the source code .java with detailed comments (atleast 3:1 ratio, 3 comments per 1 line of source code). In thecomments, you need to clearly explain your algorithm. You arewelcome to submit additional documents, e.g., workflow, diagrametc.The Question:Implement a simple Date class. You should be able to represent anydate from January 1, 1800, to December 31, 2500; subtract twodates; increment a date by a number of days; and compare two dates.[Hint: the rule for the leap year: if it is divisible by 4 and notdivisible by 100 unless it is also divisible by 400.]The Deliverable:1. The java source code in .java with detailed inlinecomments.2. Additional documents (optional).Marking Rubric:1. Your code must be able to compile and run. Fail to compile willdefault to a ZERO.2. You must provide .java source code. If you submit .class filewill default to a ZERO.3. Your code will go against a list of testing runs. The accuracywill determine the final score.4. No comment or not enough comments will result a significantreduction in score from 20% to 50%.5. Partial score will be given to compiled but incorrect outputcodes.6. Do not take anything from external resource, or from others. AllKPU cheating and plagiarism policies applies. I take this mattervery seriously. If you use any external package or library, youmust clearly cite them in the comments.If you have any questions, feel free to contact me BEFORE the dueday at [email protected].