Programming Assignment/Lab 1
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.
We've got everything to become your favourite writing service
Online Classes & Labs
We handle entire coursework & labs for the whole semester. Read the 'About Us' Page for details on how we'll handle your Fall Semester coursework!
Confidentiality
We don’t share your private information with anyone. What happens on our website stays on our website.
Money-back guarantee
Your money guarantees you quality :) Scroll to the bottom to read our Money-back Guarantee.
Get a plagiarism-free paper
We check every paper with our plagiarism-detection software, so you get a unique paper written for your particular purposes.
We can help with Urgent Tasks
Need a paper tomorrow? We can write it even while you’re sleeping. Place an order now and get your paper in 4/8 hours.
Pay a fair price
Our prices depend on urgency. If you want a cheap essay, place your order in advance. Our prices start from $10 per page.