Assignment Content
Create class Date that can output the date in multiple formats. You may assume that the user enters the data correctly and that there is not a leap year. Output the date entered by the user in all three of the following formats (with today’s date as an example):
MM/DD/YYYY (09/04/2019)
Month name, DD, YYYY (September, 04, 2019)
DDD YYYY (247 2019)
Use overloaded constructors to create Date objects initialized with dates of the formats and content enters by the user. There should be a default constructor, the second constructor should received three integer values, the third a string and two integers, the fourth two integers. The user should get a menu of options to enter the date in any one of the three formats. Then the program will convert that entry and display all three formats with a well formatted output to the display. The program should loop continually until the user is done entering dates and chooses to exit.
Your files should include the Date class and a DateTest class which contains the code to test your class functions. Also, your submission files should include execution screenshots showing that all options are working correctly. Grading criteria are listed in the associated rubric. Two attempts for submission are allowed to provide an opportunity to ensure all files are included.
Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.
You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.
Read moreEach paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.
Read moreThanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.
Read moreYour email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.
Read moreBy sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.
Read more